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,388
» Latest member: DTECHSYSTEM
» Forum threads: 38,820
» Forum posts: 176,017

Full Statistics

Online Users
There are currently 34 online users.
» 1 Member(s) | 30 Guest(s)
Bing, Google

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 8
» Views: 189
IP address for users
Forum: Networking
Last Post: itx_sumeet
9 hours ago
» Replies: 4
» Views: 7,057
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Today, 01:10 AM
» Replies: 5
» Views: 9,879
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 130
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 73
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 132
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,290
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 97
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: 165

 
  python multiprocessing help -- to extract 10 sql table into csv
Posted by: mg24 - Nov-17-2022, 08:23 AM - Forum: General Coding Help - Replies (3)

Hi Team,

Need your help in improving my existing code using multithreading or multiprocessing as per below situation.

I have 10 sql tables in a ..... More

Print this item

  Print the line before the corrent line
Posted by: tester_V - Nov-16-2022, 08:30 PM - Forum: General Coding Help - Replies (9)

Greetings!
I'm searching lines for two words "PASSED" and "FAILED"
I need to get the line before "PASSED" and the "FAILED" line.
I'm definitely doi..... More

Print this item

  String to Number in Python
Posted by: Godjuned - Nov-16-2022, 06:36 PM - Forum: Homework - Replies (3)

Number: positive, up to billion (10 digits)

Example 1:
Input : I bought twenty three packs of bread
Output : I bought 23 packs of bread

Exampl..... More

Print this item

  [SOLVED] [Linux] Script in cron stops after first run in loop
Posted by: Winfried - Nov-16-2022, 05:35 PM - Forum: General Coding Help - Replies (2)

Hello,

For some reason, the following Python script that runs every hour through cron stops after the first run in the loop after downloading the R..... More

Print this item

  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: 259)
.py   Settings.py (Size: 105 bytes / Downloads: 256)
.py   Sprite.py (Size: 414 bytes / Downloads: 282) 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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 2 hours ago eedjsa Gribouillis General Codin...
  IP address for users 9 hours ago Robots itx_sumeet Networking
  Lottery generator (beginn... Today, 01:10 Hullari Pedroski55 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...
Most views
  The best Prog... 580343
  Tutorial Requ... 518932
  Web Scraping ... 442764
  Newbie with P... 386945
  New Users Int... 386118
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
DTECHSYSTEM Today
zashleyfracesz3221 Today
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday

User Panel Messages

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