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,511
» Latest member: Stephenanern
» Forum threads: 38,584
» Forum posts: 174,838

Full Statistics

Online Users
There are currently 713 online users.
» 0 Member(s) | 708 Guest(s)
Yandex, Bing, Google, Baidu, Google Image

Latest Threads
Best way to pass data to ...
Forum: Game Development
Last Post: RogereK
23 minutes ago
» Replies: 7
» Views: 5,070
smbus.SMBus i2c code whic...
Forum: General Coding Help
Last Post: Earnestacuts
54 minutes ago
» Replies: 3
» Views: 526
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
Yesterday, 04:17 AM
» Replies: 17
» Views: 31,753
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 12:24 AM
» Replies: 1
» Views: 179
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:52 PM
» Replies: 5
» Views: 356
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:46 PM
» Replies: 1
» Views: 135
Looking for ideas
Forum: Bar
Last Post: Larz60+
May-23-2025, 10:55 AM
» Replies: 2
» Views: 468
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
May-23-2025, 12:35 AM
» Replies: 9
» Views: 2,703
Languages
Forum: General Coding Help
Last Post: Arush
May-22-2025, 06:51 PM
» Replies: 2
» Views: 260
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
May-21-2025, 07:49 AM
» Replies: 8
» Views: 21,443

 
  Open tkinter colorchooser at toplevel (so I can select/focus on either window)
Posted by: tabreturn - Jul-05-2022, 01:44 AM - Forum: GUI - Replies (4)

I'm opening a TKinter colorchooser window with this code:

colors = colorchooser.askcolor(title='Color Selector')

I wan..... More

Print this item

  Coding careers
Posted by: wolfman5874 - Jul-04-2022, 08:51 PM - Forum: News and Discussions - No Replies

Hi all, I'm new to the forum and wanted to hear from others who have careers in python. I currently work as a sysadmin and recently started getting ba..... More

Print this item

  NameError: name ‘app_ctrl’ is not defined
Posted by: 3lnyn0 - Jul-04-2022, 08:08 PM - Forum: General Coding Help - No Replies

Hello! I finished a python course and I'm working on a project but I have some problems.
The most urgent would be: after filling in all the fields in..... More


Attached Files

Thumbnail(s)
       
Print this item

  Client/Server proper finalizing transfer
Posted by: wolfman5874 - Jul-04-2022, 05:44 PM - Forum: Networking - Replies (1)

Hi all. Been learning python for a couple months now and started getting into sockets the past few days. I have a simple client/server app that will j..... More

Print this item

  Particle movement mystery
Posted by: XavierPlatinum - Jul-04-2022, 05:37 PM - Forum: Game Development - Replies (10)

I have an Explosion class that spawns a bunch of Particles. But when it does, all the particles zip off in a clump, not in random directions.
[pyt..... More

Print this item

  Can you run Python off Dropbox?
Posted by: Extra - Jul-04-2022, 04:54 PM - Forum: News and Discussions - Replies (1)

Hello,

I'm wondering if it's possible to run a python program I created off Dropbox so multiple people can use it.
Everyone using the program wil..... More

Print this item

Question requests.get miss format the conecction url
Posted by: jlcc_py - Jul-04-2022, 03:51 PM - Forum: Web Scraping & Web Development - Replies (2)

HI
I am writing some code to use rest API calls to our Service Desk Solution and get information from tickets.
I am using the request module to use ..... More

Print this item

  AttributeError: 'numpy.ndarray' object has no attribute 'load'
Posted by: hobbyist - Jul-04-2022, 02:18 PM - Forum: General Coding Help - Replies (8)

I have the following error:

[error]
currrent_pixel = my_image.load()
AttributeError: 'numpy.ndarray' object has no attribute 'load'
[..... More

Print this item

  How to 'soft-embedd' subtitles with python-ffmpeg
Posted by: Pavel_47 - Jul-04-2022, 11:23 AM - Forum: General Coding Help - Replies (2)

Hello,

I've found an example on how to embed subtitles using ffmpeg from command line:
ffmpeg -i video.mp4 -i subtitles.srt -map 0:v -map 0:a -c c..... More

Print this item

  Human Sorting (natsort) does not work [SOLVED]
Posted by: AlphaInc - Jul-04-2022, 09:08 AM - Forum: General Coding Help - Replies (2)

Hello everybody,

With a batch-script I export mutliple text-files to a specific folder where I want to merge them into one.
Therefore I used the t..... More

Print this item

  adding the customize dataset to BERT
Posted by: alicenguyen - Jul-04-2022, 08:59 AM - Forum: General Coding Help - Replies (2)

I want to summarize our training documents by using BERT model.
I tried with the code below but the result looks not the best.
So, I want to add the..... More

Print this item

  Rounding
Posted by: DPaul - Jul-04-2022, 06:42 AM - Forum: Bar - Replies (4)

I have developed an app, which does lengthy, but not very complicated calculations.
The main thing is that it produces end results, rounded numbers t..... More

Print this item

  Can you help me with this code please
Posted by: SuperNinja3I3 - Jul-04-2022, 04:48 AM - Forum: Homework - Replies (2)

[python]# Import statements
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.m..... More

Print this item

  Error in Using INPUT statement
Posted by: gunwaba - Jul-03-2022, 07:50 PM - Forum: General Coding Help - Replies (1)

Hello all.

I am using Python 3.9.12 in Spyder 5.1.5 environment. I tried to execute the input statement in a very simple way:

[python]Name = i..... More

Print this item

  File not found error
Posted by: saisankalpj - Jul-03-2022, 09:30 AM - Forum: General Coding Help - Replies (10)

I am using pysftp module to connect to sftp server.After establishing the connection,I am trying to upload a file from my local to sftp server.For thi..... More

Print this item

Question How to Write a function with Pandas?
Posted by: SuperNinja3I3 - Jul-03-2022, 04:39 AM - Forum: Homework - Replies (4)

Write a function that takes the start and end of a range returns a Pandas series object containing numbers within that range. In case the user does no..... More

Print this item

  how to reverse a list and store in another list in python
Posted by: SuperNinja3I3 - Jul-02-2022, 03:41 PM - Forum: Homework - Replies (6)

I want to reverse a list but want to store it in another list...

reverse the elements of the ‘myList’ and store that in ‘reversedList’

Print this item

Question how to write a function that accepts a 1D array as a parameter in Python
Posted by: SuperNinja3I3 - Jul-02-2022, 12:46 PM - Forum: Data Science - Replies (1)

5. Given a 1 D Numpy Array. Write a function that accepts this array as parameters. The method

should return a dictionary with 'mean' and 'std_dev'..... More

Print this item

  modifying PYTHONPATH during a script
Posted by: Skaperen - Jul-02-2022, 04:39 AM - Forum: News and Discussions - Replies (6)

i want to add a directory (folder) to the list of directories to search for modules so that it affects the script that is making the change. i prefer..... More

Print this item

  Retrieve variable from function
Posted by: labgoggles - Jul-01-2022, 07:02 PM - Forum: General Coding Help - Replies (2)

Hi, I'm totally new to python and I'm using a code under the 'Example code' section from this wikipedia article:
https://en.wikipedia.org/wiki/Random..... More

Print this item

  How to move multiple columns to initial position
Posted by: SriRajesh - Jul-01-2022, 02:17 PM - Forum: General Coding Help - Replies (4)

Hi,
I have below df and want to move multiple columns to initial position.

df:
[python]wat tey step low tool tech category subj name
1 2 3 ..... More

Print this item

Question Cant understand the question...
Posted by: SuperNinja3I3 - Jul-01-2022, 01:46 PM - Forum: Data Science - Replies (3)

3. Given a 2 D Array of N X M Dimension, Write a function that accepts this array as well as two
numbers N and M. The method should return the top-le..... More

Print this item

  Division by zero and value of argument
Posted by: Lawu - Jul-01-2022, 12:49 PM - Forum: General Coding Help - Replies (5)

I am new with python also new with this forum.
I have searched this topic but didn't give me better solutions (may be my search skill is poor)

[py..... More

Print this item

  Membership test for an element in a list that is a dict value for a particular key?
Posted by: Mark17 - Jul-01-2022, 12:38 PM - Forum: General Coding Help - Replies (2)

Suppose:

a = {3:['apple', 'pear'], 5:['grape', 'cherry']}
How can I do a membership test to see if 'cherry' is in the list ..... More

Print this item

  Error while running code on VSC
Posted by: maiya - Jul-01-2022, 12:05 PM - Forum: General Coding Help - Replies (4)

I have installed python3, however while running below code snippet in the VS Code terminal getting an error as system could not find the path.
[pyth..... More

Print this item

  TypeError: float() argument must be a string or a number, not 'list'
Posted by: Anldra12 - Jul-01-2022, 07:54 AM - Forum: General Coding Help - Replies (2)


  1. I am working on project Shamir secret sharing scheme get the error
[color=#E74C3C]TypeError: float() argument must be a..... More

Print this item

  python-docx- change lowercase to bold, italic
Posted by: Tmagpy - Jul-01-2022, 07:25 AM - Forum: General Coding Help - No Replies

In my docx file there are pieces of text i have to process such as making words italic, bold or underlined.

Example

[quote] input: In the future..... More

Print this item

  jinja endfor error
Posted by: 3lnyn0 - Jun-30-2022, 07:49 PM - Forum: General Coding Help - No Replies

Hi! I'm getting ther next error for the below code [error]jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'endfor'. Jinja was looking f..... More

Print this item

  Second window with buttons and plot
Posted by: frohr - Jun-30-2022, 06:24 PM - Forum: General Coding Help - Replies (1)

Hey, I have main window and if I click on button then second window will open. In second window I will have buttons and text fields on the left and on..... More

Print this item

  Key Binding scope
Posted by: angus1964 - Jun-30-2022, 06:17 PM - Forum: GUI - Replies (1)

If I bind the return key to a function in my main window can I open a new toplevel window, then bind the return key to a different function, and retur..... More

Print this item

  Basic Pandas, obtaining a value from column and row
Posted by: JamesOzone - Jun-30-2022, 04:52 PM - Forum: General Coding Help - Replies (2)

Hi all,

Getting back into coding, I have a data file (named AC) using PANDAS which reads an XLSX file. I want to retrieve the value that correspond..... More


Attached Files

Thumbnail(s)
   
Print this item

  Sprite image rotation problem
Posted by: XavierPlatinum - Jun-30-2022, 04:47 PM - Forum: Game Development - Replies (4)

I'm likely just blind, but I can't find the reason my pygame sprite image (which is just a pygame.Surface) is a solid, filled square that grows and sh..... More

Print this item

  cannot get code to work
Posted by: Led_Zeppelin - Jun-30-2022, 01:11 PM - Forum: General Coding Help - Replies (10)

I have spent a day is trying to get the following code to work.

[code]
df2 = pd.DataFrame(df, columns = ['sensor_00', 'sensor_01', 'sensor_02', '..... More

Print this item

Photo PySimpleGUI Adjust SCREEN size
Posted by: Alcrkai - Jun-30-2022, 11:58 AM - Forum: General Coding Help - No Replies

When executing my second layout, it starts with the window off the screen, not being able to close it by the button and cutting the elements displayed..... More


Attached Files

Thumbnail(s)
   
Print this item

  Portability in Python and Java
Posted by: ankitdixit - Jun-30-2022, 07:37 AM - Forum: News and Discussions - Replies (1)

Hello All, I am working on a freelance project which is based on python and java both and I am good at java. I want to know which programming language..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [PyGame] Best way to pass... 23 minutes ago Milosz RogereK Game Developm...
  smbus.SMBus i2c code whic... 54 minutes ago NewbyTyro Earnestacuts General Codin...
  Is Python used to make po... Yesterday, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... Yesterday, 00:24 Azdaghost deanhystad General Codin...
  Call CLI app with input? 05-23, 19:52 Winfried snippsat General Codin...
  backtesting can't optimiz... 05-23, 19:46 Running_Code snippsat General Codin...
  Looking for ideas 05-23, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... 05-23, 00:35 temlotresid6 RogereK Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
  Error on import: SyntaxEr... 05-21, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... 05-21, 06:08 Hasan2025 DeaD_EyE General Codin...
Most views
  The best Prog... 568082
  Tutorial Requ... 467769
  Web Scraping ... 432870
  Newbie with P... 371703
  Thread remain... 343687
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+ 12053
buran 8171
snippsat 7328
deanhystad 6828
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Stephenanern Today
ShaneHoown Yesterday
DichaelIntak Yesterday
Lewistot Yesterday
DichaelLoaCk Yesterday

User Panel Messages

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