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,527
» Latest member: Kumo_Koloo
» Forum threads: 38,661
» Forum posts: 175,189

Full Statistics

Online Users
There are currently 317 online users.
» 0 Member(s) | 310 Guest(s)
Baidu, Apple, Bing, Yandex, AOL, Google

Latest Threads
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Kumo_Koloo
3 hours ago
» Replies: 0
» Views: 37
Qt Event Filtering
Forum: GUI
Last Post: Axel_Erfurt
6 hours ago
» Replies: 2
» Views: 72
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 7
» Views: 398
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 04:00 PM
» Replies: 3
» Views: 235
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 02:41 AM
» Replies: 5
» Views: 231
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 3,985
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 150
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 224
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 769
Cleaning my code to make ...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:20 AM
» Replies: 14
» Views: 4,345

 
  Problem : IndexError...
Posted by: JohnnyCoffee - Nov-16-2022, 03:52 PM - Forum: General Coding Help - Replies (5)

I'm capturing a string (url) where the array will be assembled at runtime, but I'm facing the following error ( IndexError: list index out of range ),..... More

Print this item

  [SOLVED] [Debian] UnicodeEncodeError: 'ascii' codec
Posted by: Winfried - Nov-16-2022, 10:21 AM - Forum: General Coding Help - Replies (1)

Helllo,

I get this error when running a script on a Debian 11 host (Python 3.5.3), apparently because the web site I call through requests() return..... More

Print this item

  [SOLVED] Alternative to regex to extract date from whole timestamp?
Posted by: Winfried - Nov-16-2022, 08:41 AM - Forum: General Coding Help - Replies (6)

Hello,

Python being such a rich language, I was wondering if it provides a ready-to-use function to extract juste the date from a whole timestamp i..... More

Print this item

  call query telebot
Posted by: lolita7777 - Nov-16-2022, 07:54 AM - Forum: General Coding Help - Replies (1)

There are 3 functions:

send_docs_shop1()
send_docs_shop2()
send_docs_shop3()

How to call them depending on callback_query. For example if call..... More

Print this item

  flask.cli.NoAppException: Could not import 'app'
Posted by: kazu755 - Nov-16-2022, 06:59 AM - Forum: Web Scraping & Web Development - Replies (4)

Background
I am currently making flask-based application with Python but fatal error shown in the title occurs. I searched ..... More

Print this item

  Multiprocessing Pool Multiple Instances How to Kill by Pool ID
Posted by: sunny9495 - Nov-16-2022, 05:57 AM - Forum: General Coding Help - No Replies

Hi,

Iam working multiple multiprocessing pool which was working fine, but the main issue is, how i can kill only particular pool.

[img]https://i..... More

Print this item

  Keyboard for coding (and general use)
Posted by: rob101 - Nov-15-2022, 08:18 PM - Forum: Bar - Replies (1)

Although I have four computers on the go at any one time (one for my music and such, a server for obvious reasons, and one that displays some 'market'..... More

Print this item

  How to find PyWin32 for Python 2.1.3
Posted by: Paul_Newton - Nov-15-2022, 06:22 PM - Forum: General Coding Help - Replies (9)

Please don't ask why I would want to install such an old version of Python, but I have Python 2.3.1 installed anyway. Now I am looking for the corres..... More

Print this item

  music for learning/programming
Posted by: astral_travel - Nov-15-2022, 06:22 PM - Forum: Bar - Replies (9)

hey,
is there some good music on youtube that you can share here that is good for learning and/or programming ?

of course there is a mix list of w..... More

Print this item

  the term arguments
Posted by: astral_travel - Nov-15-2022, 06:17 PM - Forum: News and Discussions - Replies (25)

hey,
why is the given term of "arguments" is signifying both when 'people fight verbally' and 'parameters',
is there a connection between the two ?..... More

Print this item

  If statement not working correctly?
Posted by: MrKnd94 - Nov-15-2022, 04:58 PM - Forum: General Coding Help - Replies (2)

Hello.

I'm sorry to bother you all, but I'm having trouble with the While loop, and the Quit function. I've tried it before, but I didn't get it to..... More

Print this item

  Find (each) element from a list in a file
Posted by: tester_V - Nov-15-2022, 05:44 AM - Forum: General Coding Help - Replies (3)

Greetings!
I want to scan a .csv file, find cells with dates, and create a list of dates.
then I'd like to check the same file and find strings that..... More

Print this item

  how to write exception error into logger
Posted by: mg24 - Nov-15-2022, 04:09 AM - Forum: General Coding Help - Replies (3)

Hi Team,

I am unable to write error message into logger my logger file.

I am generating error , I can print that error.
I cannot write that err..... More

Print this item

  python standard way of importing library
Posted by: mg24 - Nov-15-2022, 01:30 AM - Forum: General Coding Help - Replies (1)

Hi Team,
What is industrial standard way of importing library ,
my colleague suggested below.

1)standard,
2) third party,
3) local modules

[..... More

Print this item

  python create function validation
Posted by: mg24 - Nov-15-2022, 12:22 AM - Forum: General Coding Help - Replies (1)

Hi Team,

how to create separate function for validating command line arguments in another module
and import the same in main module


[Python]..... More

Print this item

Brick [SOLVED] Password generation UnboundLocalError exception
Posted by: Milan - Nov-14-2022, 05:51 PM - Forum: GUI - Replies (3)

Hello team,

I have the following code:

[python]from tkinter import *
import random
import string

random_string = string.ascii_letters + str..... More

Print this item

  from numpy array to csv - rounding
Posted by: SchroedingersLion - Nov-14-2022, 05:33 PM - Forum: General Coding Help - Replies (6)

Greetings,

I have a 2D numpy array

ARR
storing a bunch of floats. I want to print it row by row to a .csv file, but rounded to 3 sig..... More

Print this item

Smile How to further boost the data read write speed using pandas
Posted by: tjk9501 - Nov-14-2022, 01:34 PM - Forum: Data Science - Replies (1)

Hello!

I am using Cupy module to speed up linear algebra calculations using NVIDIA GPU, and after the calculation I need to retrive calculated resu..... More

Print this item

  email Library: properly send message as quoted-printable
Posted by: malonn - Nov-14-2022, 11:13 AM - Forum: General Coding Help - Replies (3)

I am struggling to get email clients to properly render HTML messages. I believe it is a result of the content transfer encoding. I've tried several..... More

Print this item

  Pandas CSV Issues
Posted by: rmfooty - Nov-14-2022, 10:09 AM - Forum: Data Science - Replies (2)

Hi all, and thank you for your help in advance.

I am experiencing a strange issue with Pandas. I have a program that reads an entire CSV into a dat..... More

Print this item

  How to run together python3.10 and python3.7
Posted by: ilknurg - Nov-14-2022, 08:58 AM - Forum: General Coding Help - Replies (2)

Hi everyone. I have a code which is written with python3.7
Because of python3.7 doesnt have switch-case I wrote another code script with python3.10..... More

Print this item

  Requests_HTML not getting all data on Amazon
Posted by: aaander - Nov-14-2022, 12:47 AM - Forum: Web Scraping & Web Development - Replies (1)

I'm working on a review scraper, and I'm troubleshooting some code to get proof of concept that what I want can be done in requests_HTML. I am runnin..... More

Print this item

  WMI error
Posted by: cosmin1805 - Nov-13-2022, 03:47 PM - Forum: General Coding Help - Replies (3)

Hi, I am trying to run this thing to get the CPU temperature(I got it from youtube but I am open to other suggestions that work on WINDOWS) and I get ..... More

Print this item

  My ship is not moving(
Posted by: Like_begginer - Nov-13-2022, 09:29 AM - Forum: Homework - Replies (3)


.py   Rocketboom.py (Size: 1.44 KB / Downloads: 233)
.py   Settings.py (Size: 105 bytes / Downloads: 227)
.py   Sprite.py (Size: 414 bytes / Downloads: 257) my rocket on my screen but i don't understood why it is not working

Print this item

  CRLF vs CR vs LF in encode/decode
Posted by: Skaperen - Nov-13-2022, 01:57 AM - Forum: News and Discussions - No Replies

can/do encode() or decode() do any translation of CRLF or CR or LF ?

Print this item

  question about if __name__=="__main__"
Posted by: aaander - Nov-13-2022, 12:07 AM - Forum: General Coding Help - Replies (6)

I am working on a scraper, I've made the class, and written the driver under if __name__ == '__main__': My question is, and sorry if it's basic, I'm ..... More

Print this item

  im not sure what ive done wrong code doesnt run
Posted by: dgizzly - Nov-12-2022, 11:19 PM - Forum: Homework - Replies (3)

[python]def main():
again='y'
while again=='y' or again=='Y':
try:
key=('A', 'C', 'A', 'B', 'B', 'D', 'D', 'A', 'C', '..... More

Print this item

  Remove numbers from a list
Posted by: menator01 - Nov-12-2022, 08:34 PM - Forum: General Coding Help - Replies (4)

I've been working a problem in another forum and ran across something I don't understand.
Giving a list of numbers as input and then removing the num..... More

Print this item

  Help with Morpholib?
Posted by: Drachenbauer - Nov-12-2022, 07:59 PM - Forum: General Coding Help - Replies (2)

This Youtuber:
Morphocular
says, he has made his math animations with thi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Need Help! Pandas EXCEL PIVOT
Posted by: psb3958 - Nov-12-2022, 07:53 PM - Forum: General Coding Help - Replies (1)

I want to sort column 'PERIOD_START_TIME' from new date to old date.
[python]
df_pivot = pd.pivot_table (df, values = 'NTM NR RET NSA SN Total Drops..... More


Attached Files

Thumbnail(s)
   
Print this item

  first function
Posted by: astral_travel - Nov-12-2022, 06:49 PM - Forum: General Coding Help - Replies (36)

i wrote the following code:

[python]
while True:
howMany = int(input("how many numbers do you want ?"))

def fibo():
a = 0
..... More

Print this item

  Os.system("shutdown"); command not found
Posted by: cosmin1805 - Nov-12-2022, 11:43 AM - Forum: General Coding Help - Replies (4)

Hi, I am trying to shutdown my Linux mint computer via a python script, but I get a command not found error.
[python]os.system("shutdown now")[/pytho..... More

Print this item

  math (stats) question
Posted by: DPaul - Nov-12-2022, 08:12 AM - Forum: Bar - Replies (2)

Hi,
We processed our first batch of 25.000 prayer cards. Awesome!
But: the quality of the result depends on a lot of factors,
probably the most impor..... More

Print this item

  help me simple code result min and max number
Posted by: abrahimusmaximus - Nov-12-2022, 04:45 AM - Forum: General Coding Help - Replies (2)

I have the following code:

[python]
largest = None
smallest = None
while True:
num = input('enter a num ')
if num == "done":
..... More


Attached Files

Thumbnail(s)
   
Print this item

  Failing to print sorted files
Posted by: tester_V - Nov-12-2022, 04:05 AM - Forum: General Coding Help - Replies (4)

Greetings!
I'm trying to sort files in a directory by the timestamp.
I got this snipped from the internet and if I specify the directory the snipped..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  processing nested json da... 3 hours ago Kumo_Koloo Kumo_Koloo Web Scraping ...
  Qt Event Filtering 6 hours ago deanhystad Axel_Erfurt GUI
  Convert .pdf to .txt 10 hours ago vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... Yesterday, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... Yesterday, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
  Data cleaning help 07-11, 07:18 ClimbAddict FrankBuckland General Codin...
Most views
  The best Prog... 572650
  Tutorial Requ... 485693
  Web Scraping ... 437114
  Newbie with P... 380047
  Thread remain... 351369
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7351
deanhystad 6854
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kumo_Koloo Today
tomanadoveza Today
zaelizabethwift4333 Today
lessonanthony Today
sitedata Today

User Panel Messages

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