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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,386
» Latest member: itx_sumeet
» Forum threads: 38,820
» Forum posts: 176,012

Full Statistics

Online Users
There are currently 35 online users.
» 1 Member(s) | 27 Guest(s)
Bing, Google, AOL, Twitter, itx_sumeet

Latest Threads
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 5
» Views: 9,864
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
6 hours ago
» Replies: 4
» Views: 112
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 129
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 70
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 129
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,286
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 94
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 751
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 159
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 138

 
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

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Lottery generator (beginn... 4 hours ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 6 hours ago eedjsa bowlofred General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580333
  Tutorial Requ... 518841
  Web Scraping ... 442758
  Newbie with P... 386942
  New Users Int... 386050
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday
eedjsa Yesterday
byanfrances6176 Yesterday

User Panel Messages

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