Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,480
» Latest member: whitecat25
» Forum threads: 38,579
» Forum posts: 174,812

Full Statistics

Online Users
There are currently 491 online users.
» 0 Member(s) | 483 Guest(s)
Google, Yandex, Bing, Twitter, Google Image

Latest Threads
How to attach images to a...
Forum: Board
Last Post: sethmike9
Today, 04:08 AM
» Replies: 6
» Views: 8,865
How To Attach data Files
Forum: Board
Last Post: sethmike9
Today, 04:05 AM
» Replies: 3
» Views: 4,134
Text frame
Forum: Homework
Last Post: Pedroski55
Yesterday, 07:39 PM
» Replies: 2
» Views: 352
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
Yesterday, 06:28 PM
» Replies: 0
» Views: 139
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 270
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 212
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,387
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 156
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 486
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,329

 
  Method works as expected on host machine but not on server
Posted by: gradlon93 - Jan-04-2023, 11:48 AM - Forum: General Coding Help - Replies (4)

Good morning,

I have written the following script, which should run a method recursively until the constant SIGN_COLOR from an ex..... More

Print this item

  boolean array: looking for all rows where all is True
Posted by: paul18fr - Jan-04-2023, 09:43 AM - Forum: Data Science - Replies (4)

Hi

I want to get rows where all columns are True; I have supposed it has been "simple", but i do not understand why the following code does n..... More

Print this item

  Montecarlo simulation methods - Python package
Posted by: vallops99 - Jan-04-2023, 08:29 AM - Forum: Data Science - No Replies

Hello fellas,

I would like to introduce you to montecarlosim Python package.
I'm developing a package that let people use Montecarlo simula..... More

Print this item

  i guess i don't really understand locals
Posted by: Skaperen - Jan-04-2023, 03:13 AM - Forum: News and Discussions - No Replies

[python]
def funa():
print('started funa')
foo = 'bar'
def funb():
print('started funb')
print('locals() =',repr(loc..... More

Print this item

  new terminology i want to use in 2023
Posted by: Skaperen - Jan-03-2023, 11:52 PM - Forum: Bar - Replies (2)

instead of "source code" or in many cases just "code" i want to use the term "recipe" (or whatever it is in the language being used).

Print this item

  TypeError: a bytes-like object is required
Posted by: ZeroX - Jan-03-2023, 08:24 PM - Forum: General Coding Help - Replies (13)

Hi, I am very new to Python so I apologise if this is an obvious fix!

I have a script that was written a long time ago (not by me) so it is in Pyth..... More

Print this item

  pyspark help
Posted by: lokesh - Jan-03-2023, 04:34 PM - Forum: General Coding Help - No Replies

Hi,

I need a help to convert this pandas df to pyspark dataframe

df=df.groupby('key', as_index=False).agg({'key' : 'first', 'country' : ', '.jo..... More

Print this item

Question How to make split button?
Posted by: teknixstuff - Jan-03-2023, 02:33 PM - Forum: GUI - Replies (2)

How can I make a split button with Tkinter?
Here's an example of what that looks like:
[img]https://eithermouse.com/ahk/Screenshots/SplitButton.png[..... More

Print this item

  pygame can't be installed
Posted by: Lethalid - Jan-03-2023, 01:37 PM - Forum: General Coding Help - Replies (4)

Hello
after typing "pip install pygame" in cmd I have:

:\Windows\system32>pip install pygame
Collecting pygame
Using cached pygame-2.1.2.tar.g..... More

Print this item

  Sine fitting - extra modulation
Posted by: Pikano - Jan-03-2023, 01:33 PM - Forum: Data Science - Replies (2)

Hi,
I have some issues with sine fitting, I use a very simple sine equation

y = a + b*np.sin(N_p*theta+c)
but the result gives me ..... More


Attached Files

Thumbnail(s)
   
Print this item

  how to make label or button not visible with the place method?
Posted by: nowayj63 - Jan-03-2023, 03:05 AM - Forum: GUI - Replies (2)

how can I make this label visible or not visible using the place method?
I will have to make it visible later in he program but hidden at the start...... More

Print this item

  TKinter JSON Key Error
Posted by: Nu2Python - Jan-02-2023, 06:09 AM - Forum: GUI - Replies (4)

Hi All, I am hoping someone can tell me why this error is happening with my line:
[python]x = json.loads(sonoff01.text)
status = x['relays'][/pytho..... More

Print this item

  Random Generator: From Word to Numbers, from Numbers to n possibles Words
Posted by: Yamiyozx - Jan-01-2023, 09:18 PM - Forum: Homework - Replies (2)

Hello everyone, I'm a complete noob, but I would like to ask help to make a little projet.

The Ideia is very simple:

1.I input a seed, that can ..... More

Print this item

  Couldn't install a go-game called dlgo
Posted by: Nomamesse - Jan-01-2023, 07:19 PM - Forum: General Coding Help - Replies (14)

Hi everyone,

I'm trying to install a go game package called dlgo but I can't. Here's it all :
[python]C:\Users\Nomamesse>pip install dlgo
Collect..... More

Print this item

  reshaping 2D numpy array
Posted by: paul18fr - Jan-01-2023, 06:31 PM - Forum: Data Science - Replies (3)

Hi

Does somebody have a more efficient way to reshape the following M matrix?

The only way i've found so far is to extract 2 intermediate matri..... More

Print this item

Exclamation Setting icon on QAction from outside QGuiApplication
Posted by: gradlon93 - Jan-01-2023, 05:55 PM - Forum: GUI - Replies (3)

Good evening, and a happy new year you all.

I'm working on a GUI that is expected to become larger and larger in the future, so I am aiming to mak..... More

Print this item

  how to read txt file, and write into excel with multiply sheet
Posted by: jacklee26 - Jan-01-2023, 03:41 AM - Forum: General Coding Help - Replies (14)

Hi I have faced one problem I wish to read a text file, and when reaching ===== ending, I wish to write into a new separate sheet.
So for example, I..... More

Print this item

  Issues with "connection timed out"
Posted by: duckredbeard - Dec-31-2022, 10:46 PM - Forum: General Coding Help - No Replies

I have a Raspberry Pi running a python code that is expected to do a requests.post when a PIR detects motion. It works for several days in a row, the..... More

Print this item

  Tkinter Pillow Resize Image Looks Choppy While Resizing
Posted by: AaronCatolico1 - Dec-31-2022, 10:45 PM - Forum: General Coding Help - Replies (2)

I have a frame that stores a label which stores a background image. When I resize the form and the frame resizes, the background image of the label lo..... More

Print this item

  Using multi-core and muliple processors
Posted by: Robots - Dec-31-2022, 10:42 PM - Forum: Data Science - Replies (1)

In my computers I am running multi-core or multipule CPUs, how can I get Python to use a specific CPU, core or set of either?

Print this item

  Zooming on mouse position calculation
Posted by: GJG - Dec-31-2022, 02:55 PM - Forum: Game Development - Replies (1)

HI :) ! I have been trying to create a simple zoom on point navigation with pygame, and after endless googling sessions, this is as close as I could g..... More

Print this item

  Download video having DRM protection
Posted by: Pavel_47 - Dec-31-2022, 11:26 AM - Forum: Web Scraping & Web Development - No Replies

Hello,
I wonder if there is any method to bypass DRM protection while downloading a video.
Any suggestions ?
Thanks.

Print this item

  How to print variables in function?
Posted by: samuelbachorik - Dec-31-2022, 10:27 AM - Forum: General Coding Help - Replies (3)

Hi, lets think function

def help():
    a = 0
    b = 1
    c = linear(x)
How to now get these variables of this functions int..... More

Print this item

  Sorting data by specific variables using argparse
Posted by: Bearinabox - Dec-31-2022, 12:14 AM - Forum: Data Science - Replies (5)

I have a data set with several columns. One column is consists of different years. I'm trying to create a program so that a user can input a year and ..... More

Print this item

  Matplotlib FuncAnimation
Posted by: NewPi - Dec-30-2022, 09:45 PM - Forum: General Coding Help - Replies (3)

Hi,

I have a question about FuncAnimation of Matplotlib. Here is my code:

[python]import numpy as np
import matplotlib.pyplot as plt
import ma..... More

Print this item

  Create Excel Line Chart Programmatically
Posted by: dee - Dec-30-2022, 07:07 PM - Forum: General Coding Help - Replies (3)

Hello,
Do you have a good link or code how to create Excel line chart from Python with dataframe or from Excel data? I google for a while but unfortu..... More

Print this item

  pdf to mp3
Posted by: yawstick - Dec-30-2022, 03:19 PM - Forum: General Coding Help - Replies (4)

I'm mostly a micro python guy on ESP32 devices but recently ran across a lot of python programming videos on youtube. One caught my eye and have been ..... More


Attached Files

.pdf   test_pdf.pdf (Size: 8.48 KB / Downloads: 228)
Print this item

  Reading a file
Posted by: JonWayn - Dec-30-2022, 08:35 AM - Forum: General Coding Help - Replies (3)

I have got a simple file read code and I need to understand why it works the way it does.

[python]
def ReadFileContents(file_path):
try:
..... More

Print this item

  Add data to CSV file via Python
Posted by: Anaconda23 - Dec-30-2022, 02:31 AM - Forum: Data Science - No Replies

Hi there, I'm quite new in this field and I was wondering about the following issues:

I have a dataset to work with for a Machine Learning project...... More

Print this item

  How do I add comments from a text-file to an array of folders?
Posted by: clausneergaard - Dec-29-2022, 10:41 PM - Forum: General Coding Help - Replies (2)

Hello everyone -

I was just wondering, as I’ve ventured out on bit of a limp here, if anyone have any experience with automating the process of cre..... More

Print this item

  'networkx' Questions
Posted by: Trader - Dec-29-2022, 10:20 PM - Forum: General Coding Help - No Replies

How can I draw a network with a degree center 2 using Networkx?

How can I find the centralities of betweenness, proximity, self-worth for each node..... More

Print this item

  Error "list indices must be integers or slices, not str"
Posted by: dee - Dec-29-2022, 09:38 PM - Forum: General Coding Help - Replies (2)

I want to format Excel column to percent. The following code gave me "list indices must be integers or slices, not str" error. The __class__ of Column..... More


Attached Files

Thumbnail(s)
   
Print this item

  color code doesn't work
Posted by: harryvl - Dec-29-2022, 08:48 PM - Forum: General Coding Help - Replies (1)

I made a script in for printing colored numbers.
The output works fine in spyder.
We i run the script from my anaconda prompt it doesn't work.
Then..... More

Print this item

  Illegal instruction (core dumped) when import pandas.
Posted by: amandacstr - Dec-29-2022, 08:04 PM - Forum: General Coding Help - Replies (1)

Hello!
I have Python 3.10.6 installed in my system (Lubuntu 22.04). I installed pandas and pyarrow with "pip3 install" command but when I try to impo..... More

Print this item

Exclamation pong paddles wont move
Posted by: skullkat232 - Dec-29-2022, 07:42 PM - Forum: Game Development - Replies (5)

help pls! i am having trouble with the pong paddles and there are no visible errors in my code, pLeASe hELPA mE :((((

Here's my code:

[python]..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to attach images to a... Today, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files Today, 04:05 Talch sethmike9 Board
  Text frame Yesterday, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... Yesterday, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
Most views
  The best Prog... 565614
  Tutorial Requ... 457404
  Web Scraping ... 430544
  Newbie with P... 366900
  Thread remain... 339106
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
whitecat25 Today
livecricket Today
reactnativeexpert Today
sethmike9 Today
Juh_07 Today

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020