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,933
» Latest member: Sterlin
» Forum threads: 38,721
» Forum posts: 175,503

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 44 Guest(s)
Bing, Google, AOL, Pedroski55

Latest Threads
Sports Betting Game Devel...
Forum: Game Development
Last Post: Sterlin
30 minutes ago
» Replies: 0
» Views: 5
Too much space between gr...
Forum: GUI
Last Post: deanhystad
9 hours ago
» Replies: 3
» Views: 945
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 387
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-15-2025, 08:58 PM
» Replies: 8
» Views: 2,541
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,566
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 465
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 145
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 2,970
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,214
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 894

 
  Changing a string value to a numerical value using python code and a lamda function
Posted by: Led_Zeppelin - Jul-05-2022, 01:12 PM - Forum: General Coding Help - Replies (6)

I need to convert a column which indicates machine status (normal, broken or recovering) to a numeric representation. This seems easy enough, but I wa..... More

Print this item

  Compare two lists (with intersections).
Posted by: wnesbv - Jul-05-2022, 11:14 AM - Forum: General Coding Help - No Replies

Compare two lists (with intersections).

model:

reserve_period = sa.Column(sa.String, nullable=True)
the format of saving in ..... More

Print this item

  Research work - help with binary data
Posted by: Newhedgehog6309 - Jul-05-2022, 09:28 AM - Forum: Homework - Replies (1)

Hello everyone,

I would like to use python to analyze this table (example). But I don't know which technique would be the best for my problem.

E..... More


Attached Files

Thumbnail(s)
   
Print this item

Photo put a green boarder and text around multiple pictures
Posted by: jackosullivan - Jul-05-2022, 08:38 AM - Forum: General Coding Help - Replies (5)

I have 90 pictures that I need to add a green boarder and text around (see image attached). I then need these pictures to be saved into a folder where..... More


Attached Files

Thumbnail(s)
   
Print this item

  Python script with local libraries
Posted by: zazas321 - Jul-05-2022, 04:55 AM - Forum: General Coding Help - No Replies

Hello. I would like to get advise on how to properly create and manage a project with local libraries. For example, I am creating a script that uses m..... More

Print this item

  Byte Error when working with APIs
Posted by: Oshadha - Jul-05-2022, 02:16 AM - Forum: General Coding Help - Replies (2)

I was working with an API: Returns Json array of Tags

[python]
r = requests.get('https://cataas.com/api/tag..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Sports Betting Game Devel... 30 minutes ago Sterlin Sterlin Game Developm...
  [Tkinter] Too much space ... 9 hours ago RonR deanhystad GUI
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  403 Error 09-15, 20:58 CaptainNewb snippsat Web Scraping ...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575849
  Tutorial Requ... 497187
  Web Scraping ... 439848
  Newbie with P... 383564
  New Users Int... 365601
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Sterlin Today
krish12 Today
XenonBlack Yesterday
Lenowell Yesterday
luisshulez6883 09-15

User Panel Messages

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