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,933
» Latest member: tobey12
» Forum threads: 38,722
» Forum posts: 175,502

Full Statistics

Online Users
There are currently 39 online users.
» 1 Member(s) | 32 Guest(s)
AOL, Bing, Google, Mojeek, Apple, kshahzad1985

Latest Threads
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
1 hour ago
» Replies: 0
» Views: 11
Expert Guidance Made Easy...
Forum: General Coding Help
Last Post: Alex12
2 hours ago
» Replies: 0
» Views: 19
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
6 hours ago
» Replies: 1
» Views: 350
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,361
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,470
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 299
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 100
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,822
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,073
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 758

 
  rename same file names in different directories
Posted by: elnk - Nov-04-2022, 05:23 PM - Forum: General Coding Help - Replies (5)

I have a directory which has 10 other dirs with many files:

- directory
- dir1
- dir2
- dir3
- ...

How can i rename duplicate files ..... More

Print this item

  python Multithreading on single file
Posted by: mg24 - Nov-04-2022, 12:35 PM - Forum: General Coding Help - Replies (3)

Hi Team,

I want to use multi threading. on single csv files.


task one ----> create gzip of csv files
task two ------> Checksum no.generate ch..... More

Print this item

  'dict()' Has an Exception?
Posted by: htran3 - Nov-04-2022, 07:43 AM - Forum: General Coding Help - Replies (2)

Hey guys, please let me know if you have an answer to this (copy and paste into your IDE):
[python]x = {
0: "value 0",
1: "value 1",
2..... More

Print this item

  Regarding how to randomizing list with having equal probability
Posted by: radraw - Nov-04-2022, 05:44 AM - Forum: General Coding Help - Replies (14)

Hi I have doubt regarding randomizing images with equal probability.

I have 24 images and I want to generate 150 sets of 9 images from the 24 image..... More

Print this item

  prime numbers
Posted by: astral_travel - Nov-03-2022, 08:50 PM - Forum: General Coding Help - Replies (28)

i wrote this code:

[python]
user_input = int(input("choose a number: "))

a = range(2, user_input-1)

for x in a:
if user_input % x == 0:..... More

Print this item

  How to deactivate correctly a conda environment
Posted by: NoNameoN - Nov-03-2022, 03:18 PM - Forum: General Coding Help - Replies (2)

Hello everybody i'm trying to deactivate correctly my conda environment that is setted by default in every terminal session that i open.
As you can s..... More

Print this item

  ANSI not working for change of text colors
Posted by: BliepMonster - Nov-03-2022, 03:06 PM - Forum: General Coding Help - Replies (10)

Hello,

I tried to change the text color in my python program, and looked up a tutorial. When I typed in what they wrote, it just printed: '[2;31;43..... More

Print this item

  Openpyxl manipulate excel write formula
Posted by: SamLiu - Nov-03-2022, 11:31 AM - Forum: General Coding Help - No Replies

Hi all,
I have a demo about calculated each score with target gap as attached, formula is : ='Log'!C3-'Log'!C$2, ='Log'!C4-'Log'!C$2, ='Log'!C5-'Log'..... More

Print this item

  Separating Names & Counting
Posted by: Steven5055 - Nov-03-2022, 05:43 AM - Forum: Homework - Replies (7)

Hi,
I'm doing a Uni course & I'm a bit stuck & would appreciate some help please.

I have a column in a data frame that contains data as per below ..... More

Print this item

  Ver 3.11 installed but not in path
Posted by: omar - Nov-02-2022, 08:48 PM - Forum: General Coding Help - Replies (3)

I installed node.js. This asked me to install chocolaty (I think that's what it's called). This in turn decided to install Python 3.11.

I looked in..... More

Print this item

  Debugger
Posted by: azizrasul - Nov-02-2022, 08:04 PM - Forum: General Coding Help - Replies (6)

I am using PyCharm to run my Python code.

When I place a breakpoint on a line, the whole code runs through to the end? What can I be doing wrong. ..... More

Print this item

  QLineEdit Caret (Text Cursor) Transparency
Posted by: malonn - Nov-02-2022, 07:02 PM - Forum: GUI - Replies (5)

I noticed that if I set the background color of a QLineEdit, the caret (text cursor) becomes invisible. Setting the foreground color..... More

Print this item

  python extract
Posted by: mg24 - Nov-02-2022, 01:37 PM - Forum: General Coding Help - Replies (1)

Hi Team,

I am calling a stored procedure , and it is giving me output of 20 columns and 16 records below it.
result = cursor.fetchall()

my requ..... More

Print this item

  loop, graph
Posted by: master_graf - Nov-02-2022, 01:28 PM - Forum: General Coding Help - No Replies

Hi, everyone
I have list with data for graph (image below) like this [['1.9078244', '0.49999094'], ...] where the first argument is x, and the secon..... More


Attached Files

.txt   alpha.txt (Size: 190.91 KB / Downloads: 208)
Print this item

  Define Variable
Posted by: xinyulon - Nov-02-2022, 12:32 PM - Forum: General Coding Help - Replies (5)

Hi,

I have been wondering for long that what's is the difference between the two definitions of "Tax =0"? One is "tax = 0" defined at the foremost; ..... More

Print this item

  For Loop
Posted by: siddharth - Nov-02-2022, 08:33 AM - Forum: News and Discussions - Replies (1)

Hi,

I have a for loop program for which want result.

Program:
[python]
prices = [10,20,30]
total = 0
for price in prices:
total += pric..... More


Attached Files

Thumbnail(s)
   
Print this item

  how to merge 2 handlers pyTelegramBotApi
Posted by: lolita7777 - Nov-02-2022, 06:19 AM - Forum: General Coding Help - Replies (2)

Please write how to run these 2 functions depending on message.text. For example, if message.text== from 1 to 10 and the letter “v” then let the 1-fun..... More

Print this item

Question Algorithmic problem
Posted by: Mhd45 - Nov-02-2022, 06:05 AM - Forum: Homework - Replies (3)

John and Alex like to watch cars passing by on the street. When the car drives past, both boys write down the types of cars in their notebooks. John i..... More

Print this item

  python insert blank line in logger
Posted by: mg24 - Nov-02-2022, 04:56 AM - Forum: General Coding Help - Replies (1)

Hi Team,

I am using below code , to generate logger.
code is working,

need help how to add\insert a blank line.in logger


[python]
import ..... More

Print this item

Question Triying to store values from models
Posted by: Larry1888 - Nov-01-2022, 09:37 PM - Forum: General Coding Help - Replies (1)

Hi all!

Im writing a ini file based on a excel file readed with pandas and the columns writted in the file gonna be different depending on [u]client ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Hierarchical logging in Python
Posted by: etuzon - Nov-01-2022, 05:44 PM - Forum: Code sharing - No Replies

[align=left]
The most used logging these days is logging that prints the logs a row under a row.
There are flows that will be hard to debug by kind ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Help with university work - reading and writing files
Posted by: MrKnd94 - Nov-01-2022, 04:27 PM - Forum: Homework - Replies (5)

Hello,

Me and a lot of my classmates are so confused in today's work.

The answer sheet was published, but that didn't help us at all.

Here'..... More

Print this item

  Need help choosing threading method
Posted by: Oolongtea - Nov-01-2022, 01:07 PM - Forum: GUI - Replies (5)

I'm coding a pyqt5 interface to exchange data with an arduino through serial communication.

Basically, the program sends a command, the arduino make..... More

Print this item

  Cant access variable from anywhere
Posted by: Frankduc - Nov-01-2022, 12:51 PM - Forum: General Coding Help - Replies (33)

Hello,

I think i am not asking the right question. I want to be able to acces the variable Z at the end of the script from the beginning.
Here's a..... More

Print this item

  python Checksum No
Posted by: mg24 - Nov-01-2022, 12:00 PM - Forum: General Coding Help - Replies (4)

Hi team

I am creating a checksum. using below code.
Code is working, My csv is 15gb.

hence I am reading data in chunk.
data = f.read(10240)..... More

Print this item

  extract last word from path.
Posted by: mg24 - Nov-01-2022, 09:13 AM - Forum: General Coding Help - Replies (4)

Hi Team,

how to get last word from path.
split and get last folder name.

path = "D:\Python\sample_folder\data"

Expected output ---> Data

..... More

Print this item

  What about Python 3.11 performance boost
Posted by: wavic - Nov-01-2022, 07:54 AM - Forum: News and Discussions - Replies (2)

Has anyone tested 3.11's widely announced performance boost?

I am eager to try it but my Arch still offers me 3.10.8-2

Print this item

  Fetching the port number using asyncio
Posted by: gary - Nov-01-2022, 02:53 AM - Forum: General Coding Help - No Replies

Below is the code for multisocket server interacting with client. Port Numbers are pre-assigned as 1000 to 4000 for clients
In the client thread func..... More

Print this item

  Initializing a Serializer in init and passing data later
Posted by: wolfman5874 - Nov-01-2022, 01:06 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi all I'm building a Forum/Subforum application in django where the Forum and Subforum both have their own models and their threads have their own mo..... More

Print this item

  Problem with importing python-telegram library into the project
Posted by: gandonio - Oct-31-2022, 10:34 PM - Forum: General Coding Help - Replies (1)

Hello. I'm having trouble importing the python-telegram library into my project. I installed it with the command pip install python-telegram, and the ..... More

Print this item

  line by line debugging in PyCharm Community
Posted by: astral_travel - Oct-31-2022, 04:18 PM - Forum: General Coding Help - Replies (2)

i was wondering (and been recommended by deanhystad) - is there a way to simulate the code process line by line in PyCharm ?

similar to what can be..... More

Print this item

  reading content between a specific xml tag
Posted by: saisankalpj - Oct-31-2022, 12:38 PM - Forum: General Coding Help - Replies (1)

I have a spml file as below:

[python]<?xml version="1.0" encoding="UTF-8"?>
<spml:batchresponse designation="software developers">

<response>



<po..... More

Print this item

  Assistance with a PHP-based project
Posted by: GenTorossi - Oct-31-2022, 07:55 AM - Forum: News and Discussions - Replies (3)

Hi, community
I'm about to start a Python-based project and need a team to assist me with a set of tasks. Does anyone know a reliable web development..... More

Print this item

  python multiprocessing to download sql table
Posted by: mg24 - Oct-31-2022, 03:28 AM - Forum: General Coding Help - Replies (5)

Hi Team,

is it possible to use multiprocessing in below scenario.
downloading sql table into csv files.
to speed up downloading.


[Python]

Import ..... More

Print this item

  Potentiostat/Galvanostat potential issue
Posted by: pepe523869 - Oct-31-2022, 02:45 AM - Forum: General Coding Help - Replies (10)

Good Morning,

I made a potentiostat based on article from https://ww[url=https://python-forum.io/thread-38572.html]..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Reliable Is Assignmen... 1 hour ago tobey12 tobey12 News and Disc...
  Expert Guidance Made Easy... 2 hours ago Alex12 Alex12 General Codin...
  Another app idea - intera... 6 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575791
  Tutorial Requ... 497033
  Web Scraping ... 439802
  Newbie with P... 383494
  New Users Int... 365304
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
tobey12 Today
Alex12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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