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,935
» Latest member: Diyaseating
» Forum threads: 38,722
» Forum posts: 175,507

Full Statistics

Online Users
There are currently 49 online users.
» 2 Member(s) | 41 Guest(s)
Bing, AOL, Google, Mojeek, Apple, CaptainNewb, snippsat

Latest Threads
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
19 minutes ago
» Replies: 4
» Views: 433
Why Do Students Prefer As...
Forum: News and Discussions
Last Post: tobey12
48 minutes ago
» Replies: 0
» Views: 7
set -x shell equivalent o...
Forum: General Coding Help
Last Post: pbo75715
2 hours ago
» Replies: 2
» Views: 939
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Sep-17-2025, 05:56 PM
» Replies: 9
» Views: 3,464
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 1,862
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 808
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,052
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,097
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,158
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 724

 
  Question about List.reverse() method
Posted by: tomliuwhite - Dec-07-2021, 08:12 AM - Forum: General Coding Help - Replies (1)

CountDown=[1, 2, 3]
print(CountDown.reverse())

When I run above scripts, I got the result: None instead of [3, 2, 1]
Could anyone explain to me w..... More

Print this item

  Describe repeating sequences in Dataframe and plot results
Posted by: PBRM - Dec-06-2021, 10:29 PM - Forum: Data Science - No Replies

Hi all,

I have a Dataframe with a time series data. If I plot the data it would look something like in     . Now I want to determine the..... More


Attached Files

Thumbnail(s)
   
Print this item

Smile Touchscreen Virtual Keyboard for Pygame
Posted by: Shandy - Dec-06-2021, 09:56 PM - Forum: General Coding Help - No Replies

Good afternoon/morning,

My first post on this forum so hello to all other forum members. I have posted below a virtual keyboard for use on a touchs..... More

Print this item

  Radio Buttons Working Bassackwards
Posted by: gw1500se - Dec-06-2021, 07:07 PM - Forum: GUI - Replies (6)

I have the following radio buttons defined (sanitized):

[python]
myPhone=tk.StringVar()
tk.Radiobutton(top,text='123-456-7932',variable=myPhone,v..... More

Print this item

  How to solve this task?
Posted by: DERO - Dec-06-2021, 04:33 PM - Forum: Homework - Replies (2)

Imagine yourself as a space ranger. Create a function that has the distances from Earth to the five nearest
stars (find the distances and names of the..... More

Print this item

  getting an import statement to work in my program
Posted by: barryjo - Dec-06-2021, 03:56 PM - Forum: General Coding Help - Replies (1)

I have installed PyCharm as my python IDE.

Previously, I (think) I installed a module pygame that has USB joystick interfaces.

In my program,I ..... More

Print this item

  fast_map (parallel/concurrent map)
Posted by: michalmonday - Dec-06-2021, 03:29 PM - Forum: Code sharing - No Replies

I would like to share the "fast_map" package I wrote, and possibly ask for feedback. It uses multiple processes and threads to quickly complete IO and..... More

Print this item

  convert pcm to image
Posted by: satyanarayana - Dec-06-2021, 12:56 PM - Forum: General Coding Help - Replies (1)

Hi friends,

I have test.pcm file with raw data i want to draw wave form to image from pcm file how can i do.

Print this item

Exclamation coding
Posted by: ecovrefoltr - Dec-06-2021, 10:56 AM - Forum: General Coding Help - Replies (5)

Hey guys,
I am new to coding and getting some errors. I am sure it is quite simple for someone with more experience.
Thank you for your help

[py..... More

Print this item

  Searching Module to plot large data
Posted by: G_rizzle - Dec-06-2021, 08:00 AM - Forum: Data Science - No Replies

Hi!

as the title says, I'm searching for a module to scatter large data. The data is represented in a .txt file as xyz-coordinates (backround: thes..... More

Print this item

  Suggestion request for scrapping html table
Posted by: Vkkindia - Dec-06-2021, 03:17 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

I am struggling to scrap a html table.
When the date is selected if there is data, the table will be displayed, i am scrapping it using the xp..... More

Print this item

  Match key-value json,Regex
Posted by: saam - Dec-05-2021, 10:16 PM - Forum: General Coding Help - Replies (5)

I want to replace either the matched key's value or the value matched with strings of the same length but consisting of * only.
There is no proble..... More

Print this item

  webdriver does not work
Posted by: wiki11 - Dec-05-2021, 09:34 PM - Forum: General Coding Help - Replies (2)

Hello, I just started a new project and chromedriver does not work, I have the newest version of pycharm, Google chrome, and chromedriver.

The firs..... More


Attached Files

Thumbnail(s)
       
Print this item

  writelines only writes one line to file
Posted by: gr3yali3n - Dec-05-2021, 08:57 PM - Forum: General Coding Help - Replies (2)

i have a somewhat simple question, that seems to be escaping me. i was messing around with the built-in method itertools to see if i could get anagram..... More

Print this item

Exclamation 0x80072efd - unspecified error
Posted by: Souvr13 - Dec-05-2021, 08:25 PM - Forum: General Coding Help - Replies (3)

I tried downloading Python version 3.7.8 (32 Bit web-based download) and I got an error message saying "0x80072efd - unspecified error" when attemptin..... More

Print this item

Brick how to work with 2 or more related tables in a Post request
Posted by: ikurorox - Dec-05-2021, 01:01 AM - Forum: Web Scraping & Web Development - No Replies

How to work with 2 or more related tables in a Post request?


I have 3 tables:

  • Employee (access for Standart Users)
  • CustomUser (ac..... More

Print this item

  VScode problem with output window
Posted by: chipx - Dec-04-2021, 09:59 PM - Forum: Bar - Replies (2)

I hope I'm in the right place for this type of question....
Hello, I use VScode with Python and Code Runner and the problem that I can not solve is ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Delete multiple comments with a single API call (facebook)
Posted by: Ascalon - Dec-04-2021, 08:33 PM - Forum: General Coding Help - No Replies

Hi, currently to delete comments on posts in my facebook page I'm using the following code, which deletes one comment at a time, that is making an API..... More

Print this item

  what makes bytes so difficult to do?
Posted by: Skaperen - Dec-04-2021, 08:27 PM - Forum: News and Discussions - Replies (6)

what makes bytes so difficult to do? or is it an issue with Decimal type?
[output]
lt2a/forums /home/forums 6> python3
Python 3.6.9 (default, Jan ..... More

Print this item

  add the suffix to the next line
Posted by: Paulman - Dec-04-2021, 05:55 PM - Forum: General Coding Help - Replies (2)

Hi,

Does anybody know the shortest command to add a suffix to the header of several columns below the header and not on the same line?

I have th..... More

Print this item

  Regex problem
Posted by: bontwoody - Dec-04-2021, 04:58 PM - Forum: Data Science - Replies (3)

Im having some difficulty understanding regex patterns. After reading around I constructed the following pattern.

['^.?RE..D$']

My understanding..... More

Print this item

  Filter dataframe by datetime.date column
Posted by: glidecode - Dec-04-2021, 03:37 PM - Forum: General Coding Help - Replies (2)

I usually filter for data like this: df[df.somecolumn > 10]

However, I haven't been able to do this for a column I have in type "datetime.date"

If I..... More

Print this item

  Import requests/beautifulsoup problem
Posted by: Jokadaro_ - Dec-04-2021, 02:15 PM - Forum: General Coding Help - Replies (3)

Hey everyone,
Since yesterday I've been trying to solve a problem from Practicepython.org (exactly the 17), that needs to import requests and beautif..... More


Attached Files

Thumbnail(s)
   
Print this item

  Assigning a new value to variable
Posted by: uriel - Dec-04-2021, 12:24 PM - Forum: General Coding Help - Replies (1)

How can I assign the result (res) of the calulation to the variable "memory" and then check if the user input is "M" and if so, then set [python]x or ..... More

Print this item

  How to compile this graphing program to an exe file?
Posted by: plumberpy - Dec-04-2021, 10:15 AM - Forum: GUI - Replies (7)

[python]import matplotlib.pyplot as plt

x = [1, 2, 3]
y = [2, 4, 1]

plt.xlabel('x - axis')
plt.ylabel('y - axis')
plt.title('My first graph!'..... More

Print this item

  Call a bash script from within a Python programme
Posted by: Pedroski55 - Dec-04-2021, 12:08 AM - Forum: General Coding Help - Replies (6)

I have a lot of students. I keep all their results in an Excel file.

As the term goes on, this Excel file gets more and more columns.

Some stude..... More

Print this item

  beginner needs PyGame advice
Posted by: barryjo - Dec-03-2021, 09:25 PM - Forum: General Coding Help - Replies (4)

I am a beginner and want to learn Python and I want to get started the correct way. I am using Windows 10 and have installed python 3.8.

1) It was ..... More

Print this item

  Can't compare two strings
Posted by: uriel - Dec-03-2021, 06:46 PM - Forum: General Coding Help - Replies (2)

Hello, I can't check if this string "operation = str(lst[1])" is equal to a mathematical symbol and that the check is carried out indefinitely:

[py..... More

Print this item

  Use of groupby in a function with Pandas
Posted by: Paulman - Dec-03-2021, 04:56 PM - Forum: General Coding Help - No Replies

Hello,

I'm totally stuck with a task on using groupby in a dataframe.

I have the following df in a csv file 'athletes.csv:

,forename,surname,..... More

Print this item

  paragraphs in textfile not detected
Posted by: G_rizzle - Dec-03-2021, 04:07 PM - Forum: Data Science - Replies (3)

Hi!


i have a problem that i cant solve by myself. I wanna read-in a big textfile (>300mb) as a df. Die File consists of coordinates, that are sep..... More

Print this item

  Output from Paramiko exec_command from channel
Posted by: pemca - Dec-03-2021, 12:25 PM - Forum: General Coding Help - No Replies

Hi,

I'm new to python and Paramiko.
I want do do an SSH login to a Oracle SBC, which only supports keyboard interactive login.
I have found som c..... More

Print this item

  How to clean UART string
Posted by: Joni_Engr - Dec-03-2021, 11:36 AM - Forum: General Coding Help - Replies (4)

Hi,

I am saving the UART data in the text file which appear as.

b' All is well '

How can I remove the b' in the start and ' at the end ?

Print this item

Star Program workflow tool
Posted by: paul18fr - Dec-03-2021, 08:53 AM - Forum: General Coding Help - No Replies

All
I'm wondering what type of graphical tool I Can use to build workflow of a project (involving modules, dozains of functions, external programs an..... More

Print this item

  Error When Trying To Read CSV File
Posted by: kaega2 - Dec-03-2021, 06:38 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

I'm just learning Python for the first time and am going through the tutorial on Learnpython.org. I'm getting this weird error. I d..... More

Print this item

  numpy masking/filtering
Posted by: nilamo - Dec-03-2021, 04:32 AM - Forum: Data Science - Replies (3)

I'm working on a project where I'm using numpy for generative art, and I've got a question with how to filter an array without copying the data (so th..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  C++ program embedding Pyt... 19 minutes ago Alexandros Alexandros General Codin...
  Why Do Students Prefer As... 48 minutes ago tobey12 tobey12 News and Disc...
  set -x shell equivalent o... 2 hours ago ggpf900 pbo75715 General Codin...
  403 Error 09-17, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  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...
Most views
  The best Prog... 576165
  Tutorial Requ... 497760
  Web Scraping ... 440108
  Newbie with P... 383925
  New Users Int... 366521
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+ 12089
buran 8174
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Diyaseating Today
pbo75715 Today
marineoman Today
marineservice Today
bennyanderson482 Yesterday

User Panel Messages

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