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,500
» Latest member: RonaldDoono
» Forum threads: 38,585
» Forum posts: 174,839

Full Statistics

Online Users
There are currently 749 online users.
» 0 Member(s) | 744 Guest(s)
Google, Bing, Yandex, Applebot

Latest Threads
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 1
» Views: 71
Vibración de motor
Forum: General Coding Help
Last Post: RonaldDoono
1 hour ago
» Replies: 0
» Views: 38
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
6 hours ago
» Replies: 5
» Views: 257
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
6 hours ago
» Replies: 1
» Views: 97
Looking for ideas
Forum: Bar
Last Post: Larz60+
Yesterday, 10:55 AM
» Replies: 2
» Views: 435
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
Yesterday, 12:35 AM
» Replies: 9
» Views: 2,673
Is Python used to make po...
Forum: Game Development
Last Post: Arush
May-22-2025, 07:51 PM
» Replies: 16
» Views: 31,607
Languages
Forum: General Coding Help
Last Post: Arush
May-22-2025, 06:51 PM
» Replies: 2
» Views: 219
problems with netcdf if I...
Forum: General Coding Help
Last Post: leo54
May-22-2025, 02:08 PM
» Replies: 17
» Views: 1,676
Pip help
Forum: General Coding Help
Last Post: leo54
May-22-2025, 02:07 PM
» Replies: 5
» Views: 694

 
  KeyError: 2
Posted by: stsxbel - Aug-16-2022, 04:15 PM - Forum: General Coding Help - Replies (8)

Good evening, the second day I struggle with the code, then there is no entry in the database, then the error is KeyError: 2

[python]import struct..... More

Print this item

  can't get collision detection to work in platform game
Posted by: chairmanme0wme0w - Aug-16-2022, 12:18 PM - Forum: Game Development - Replies (10)

the code isnt producing any errors, but the player just falls through the ground and platforms i set up, im not sure what the problem is!! any help wo..... More

Print this item

  is there equal syntax to "dir /s /b"
Posted by: kucingkembar - Aug-16-2022, 07:22 AM - Forum: General Coding Help - Replies (2)

sorry for my bad English,
currently i looking all files in a folder and subfolder like "dir /s /b" in windows-cmd
[python]D:\test>dir /s /b
D:\tes..... More

Print this item

  Python Desktop GUI (part 2)
Posted by: panofish - Aug-15-2022, 11:15 PM - Forum: GUI - Replies (1)

This is the second video in my series on building a Windows Desktop application using python. In this video, I focus on building the static layout in ..... More

Print this item

  Failing regex
Posted by: tester_V - Aug-15-2022, 09:50 PM - Forum: General Coding Help - Replies (3)

Greetings!
I'm trying to find strings with a particular word(s).
Here are the words:
BG13TPPVxxxx -- where xxxx are the 4 digits
BG13TPPVxxxx(B or..... More

Print this item

  renaming the 0 column in a dataframe
Posted by: Led_Zeppelin - Aug-15-2022, 05:54 PM - Forum: General Coding Help - Replies (5)

In the following screenshot, I am trying to rename the first column (0th column) in the df2 dataframe to IndexData. The python code is shown to do thi..... More


Attached Files

Thumbnail(s)
   
Print this item

  How can I run sql file in python?
Posted by: korenron - Aug-15-2022, 01:39 PM - Forum: Data Science - Replies (7)

Hello,
I have a sql file with ~ 50 lines of update\delete\set commands
everything is config to work according to the router ID
[python]set @ID = ..... More

Print this item

  Need help Understanding JSON
Posted by: quarinteen - Aug-15-2022, 01:29 PM - Forum: General Coding Help - Replies (3)

Hello, I am not very good with python currently. I am trying to pull data from a json file. I have found seeral examples but nothing seems to work for..... More

Print this item

  Randomize in tables
Posted by: mariavol - Aug-15-2022, 07:46 AM - Forum: General Coding Help - Replies (4)

Hello!
I am wondering whether there is an opportunity for choosing random names with some conditions. I read about diffierent random functions from r..... More

Print this item

  How to send a pong on websocket-client
Posted by: tomtom - Aug-15-2022, 05:47 AM - Forum: General Coding Help - No Replies

I have made a request to Binance websocket using the python websocket client, but the problem is that the websocket connection use to disconnect autom..... More


Attached Files

Thumbnail(s)
   
Print this item

  Passing Request objects to a serializer in DRF
Posted by: Dexty - Aug-15-2022, 04:51 AM - Forum: Web Scraping & Web Development - No Replies

I have a stand-alone app and a corresponding api. The idea is to consume the api in a browser extension. I can utilize the objects from a GET request ..... More

Print this item

Heart Yahoo email "search and destroy"!
Posted by: Linh_lee - Aug-15-2022, 04:24 AM - Forum: General Coding Help - Replies (20)

Greetings friends,

My first post, very new to programing, and I must also tell you I'm fascinated and in love with Python!! Heart

My email..... More

Print this item

  How do I use a whl puython distribution?
Posted by: barryjo - Aug-14-2022, 09:45 PM - Forum: General Coding Help - Replies (6)

I just downloaded an orbit prediction package called orbit_predictor-1.15.0.py3-none-any.whl.
How do I go about converting this file into python file..... More

Print this item

  Function not executing each file in folder
Posted by: mathew_31 - Aug-14-2022, 07:20 PM - Forum: General Coding Help - Replies (9)

Hi forum I'm new at coding, I have created a code that reads in a .docx file. In that code I have a function that executes a search, assigns it to a v..... More


Attached Files

.py   CAT.py (Size: 3.8 KB / Downloads: 251)
Print this item

  color column in mail html df
Posted by: bnadir55 - Aug-14-2022, 07:11 AM - Forum: General Coding Help - No Replies

I have a df that I want to send as to_html in the mail, this df carries columns and one of them is called column A, how can I color this entire column..... More

Print this item

  how can a function find the name by which it is called?
Posted by: Skaperen - Aug-14-2022, 12:40 AM - Forum: General Coding Help - Replies (18)

how can a function find the name by which it is called?

Print this item

  Use of IdnexData on datafile
Posted by: Led_Zeppelin - Aug-14-2022, 12:25 AM - Forum: General Coding Help - No Replies

The following snippet of code I want to use to create a plot.

[code]
plt.figure(figsize(20, 8))
plt.plot(IndexData['sensor_01'], labels='sensor_0..... More


Attached Files

Thumbnail(s)
           
Print this item

  access is denied error 5 for network drive mapping ?
Posted by: ahmedbarbary - Aug-13-2022, 10:17 PM - Forum: General Coding Help - Replies (2)

I working on script running on sql server 2019 using python 3.10 .

I have directory path \\192.168.7.9\Import\8 as mapped network drive and can
wr..... More

Print this item

  function returns dataframe as list
Posted by: harum - Aug-13-2022, 08:04 PM - Forum: General Coding Help - Replies (2)

Hello, I have a function that takes a dataframe as an argument and returns a modified dataframe; and the modified dataframe is a dataframe object as c..... More

Print this item

  python version
Posted by: pygamegirl - Aug-13-2022, 04:16 PM - Forum: Game Development - Replies (1)

Hi

I'm using pycharm community edition on windows 10 and trying to install pygame.
Do I need to use a specific python version (I have latest versi..... More

Print this item

  A.I. script from facebookresearch end-to-end-negotiator
Posted by: beoswind - Aug-13-2022, 11:43 AM - Forum: Data Science - No Replies

I try to run script in Python from:

https://github.com/facebookresearch/end-to-end-n[url=https://python-forum.io/thread-37950.html]..... More


Attached Files

.zip   selection_model.zip (Size: 23.97 KB / Downloads: 0)
Print this item

  function to untabify
Posted by: Skaperen - Aug-12-2022, 05:29 PM - Forum: News and Discussions - Replies (3)

is there a function that comes with Python that can untabify a line of text that is UTF-8 encoded? it should have a parameter for the tab size and/or..... More

Print this item

  Calculate the sum of the differences inside tuple
Posted by: PUP280 - Aug-12-2022, 04:10 PM - Forum: General Coding Help - Replies (4)

Hello everyone,

I would like to calculate the sum of the differences between each value for each tuple. For instance :

(4,7,9) would give 3 (7-4..... More

Print this item

  Updating Tkinter label using multiprocessing
Posted by: Agusms - Aug-12-2022, 02:31 PM - Forum: GUI - Replies (6)

Hi!
I'm having trouble updating a label depending on a result from a function from one of the two processes I'm running. I'm trying using Queues, but..... More

Print this item

  Python Hates me
Posted by: quarinteen - Aug-12-2022, 02:08 PM - Forum: General Coding Help - Replies (4)

I am having the hardest time getting anything to work in python. I am not very familiar with it. I know c# fairly well. I am trying to open a json fil..... More

Print this item

  Graphic line plot with matplotlib, text file in pytho
Posted by: khadija - Aug-12-2022, 01:43 PM - Forum: General Coding Help - Replies (2)

hello, I want to display a graph using data from a text file with matplotlib and I am having some problems. Data is sent and received via sockets and ..... More

Print this item

  Shoud we use PIL or Pillow?
Posted by: Gribouillis - Aug-12-2022, 01:34 PM - Forum: News and Discussions - Replies (3)

Which of the two should we use and why?

My Kubuntu 22.04 OS comes with python3-pil installed. Can I install python3-pillow and use both of them?

Print this item

  Load multiple Jason data in one Data Frame
Posted by: vijays3 - Aug-12-2022, 04:29 AM - Forum: General Coding Help - Replies (6)

Hi All

I need your guidance :

I have three Jason files which in my local drive which need to be loaded in one data frame so that I can do the fu..... More


Attached Files

Thumbnail(s)
   

.zip   JsonFiles.zip (Size: 38.4 KB / Downloads: 226)
Print this item

  conditionals based on data frame
Posted by: mbrown009 - Aug-12-2022, 01:41 AM - Forum: General Coding Help - Replies (1)

I want to do an if/else statement when it comes to a value in the data frame via panadas. The issue is that when I do this the variables within are lo..... More

Print this item

  Python icons in Ubuntu
Posted by: KatManDEW - Aug-12-2022, 01:20 AM - Forum: General Coding Help - Replies (4)

I have some Python files that run when I double click on them, but I have others that have a different icon and they won't run when I double click on ..... More

Print this item

  Socket to stream data and tranmit and revieve data
Posted by: kiyoshi7 - Aug-11-2022, 10:52 PM - Forum: Networking - No Replies

Hi, I want to be able to send and receive data between a host and client and stream a video from one computer to another computer outside my network ..... More

Print this item

  Filter and str.isdigit producing an error
Posted by: tester_V - Aug-11-2022, 10:48 PM - Forum: General Coding Help - Replies (5)

Greetings!
It is probably an elementary problem for you but I'm struggling to understand why the snippet below is failing. Confused
I found it ..... More

Print this item

  Finding First Digits in String
Posted by: giddyhead - Aug-11-2022, 10:39 PM - Forum: General Coding Help - Replies (4)

Hello Everyone, I am currently having a problem with capturing numbers at the end of the h3 tags highlighted in red and the bold and italics are the n..... More

Print this item

  option -c and semicolon not working as expected
Posted by: Skaperen - Aug-11-2022, 10:04 PM - Forum: News and Discussions - Replies (6)

it was my understanding that a ";" character could be used to separate lines in the string given to the -c option of the python command. but i am fin..... More

Print this item

  pytesseract OCR
Posted by: DPaul - Aug-11-2022, 05:26 PM - Forum: Bar - No Replies

Hi,

I’m using pytesseract with 99+% success rate.
The 1% failed sentences are often caused by a drawing , printed somewhere in the left margin. ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Unequal values when added... 1 hour ago Azdaghost deanhystad General Codin...
  Vibración de motor 1 hour ago RonaldDoono RonaldDoono General Codin...
  Call CLI app with input? 6 hours ago Winfried snippsat General Codin...
  backtesting can't optimiz... 6 hours ago Running_Code snippsat General Codin...
  Looking for ideas Yesterday, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... Yesterday, 00:35 temlotresid6 RogereK Game Developm...
  Is Python used to make po... 05-22, 19:51 ironsheep Arush Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
  problems with netcdf if I... 05-22, 14:08 Blaubart leo54 General Codin...
  Pip help 05-22, 14:07 meditek leo54 General Codin...
  How To Attach data Files 05-22, 13:57 Talch leo54 Board
Most views
  The best Prog... 567456
  Tutorial Requ... 465371
  Web Scraping ... 432329
  Newbie with P... 370477
  Thread remain... 342625
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
RonaldDoono Today
Running_Code Yesterday
andreguildus Yesterday
RogereK Yesterday
kaiquesoumac 05-22

User Panel Messages

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