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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
2 hours ago
» Replies: 3
» Views: 62
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
5 hours ago
» Replies: 3
» Views: 85
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 62
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 96
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,008
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,360
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,548
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 176
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,191
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,436

 
  xlswriter(pandas) and conditional format
Posted by: paul18fr - Aug-25-2022, 09:04 PM - Forum: Data Science - Replies (1)

Hi,

I'm trying to figure out how to apply the conditional formating on complete specifc colums (J to M here) in an Excel file using Pandas; the onl..... More

Print this item

  how to read chinese character?
Posted by: kucingkembar - Aug-25-2022, 06:38 PM - Forum: General Coding Help - Replies (2)

Hi, I try to translate a Chinese page to an English page,
but the result is gibberish,
how to "convert" It to Chinese?
[python]# importing the modu..... More

Print this item

  unittest.mock for an api key
Posted by: silver - Aug-25-2022, 05:52 PM - Forum: General Coding Help - Replies (3)

I have a method call getKey() returning url and key and I need to test the function using python unittest.mock

[python]
def getKey():

key ..... More

Print this item

  please check this i wanna use a csv file as a graph
Posted by: xCj11 - Aug-24-2022, 05:47 PM - Forum: General Coding Help - Replies (5)

PLEASE just read this and help me
so i made this program where i input any csv file that could be imported in the form of a valid dataframe and , as..... More

Print this item

  a longer docstring
Posted by: Skaperen - Aug-24-2022, 05:05 PM - Forum: General Coding Help - Replies (8)

a function i am creating needs a longer docstring. it's not huge, but it is longer than 80 characters. to stay all on one line, it will need to be a..... More

Print this item

  RGB() <> colorchooser.askcolor
Posted by: KennethHobson - Aug-24-2022, 04:20 PM - Forum: GUI - Replies (9)

I pick blue color but the value returned is red, not blue as you can see in the code comments. Should I parse out the RGB values from the picked color..... More

Print this item

  import question
Posted by: DPaul - Aug-24-2022, 06:29 AM - Forum: Bar - Replies (2)

Hi,
Just a thought, not a problem:
Say I have a prog that starts with 12 imports like shutil, datetime, warnings, pandas, a class of my own...etc
..... More

Print this item

  [Solved]Pass value from GUI to Another Python Script
Posted by: Extra - Aug-23-2022, 09:40 PM - Forum: GUI - Replies (7)

Hello,

I'm trying to pass my userInput value userInput = self.UserInputLineEdit.text() from my BX_GUI.py to my BX_Test.py so I can..... More

Print this item

  Print Player Name and Number of Pokemon
Posted by: webmanoffesto - Aug-23-2022, 07:39 PM - Forum: General Coding Help - Replies (1)

I'm a beginner python programmer, taking an online python class. I am creating a Pokemon game.

I'm stuggling with the next teaching instruction
[..... More

Print this item

  How to change the datatype of list elements?
Posted by: mHosseinDS86 - Aug-23-2022, 02:44 PM - Forum: General Coding Help - Replies (9)

hi there everyone!
I have a question related to changing the datatype of list:
- How to change the datatype of list?

Print this item

  Problem with GridSearchCV
Posted by: ghnunes - Aug-23-2022, 02:11 PM - Forum: General Coding Help - No Replies

Hello guys, I'm trying to do some tests with GridSearch, but I have this error, could you tell me why?

[b]in clone raise TypeError("Cannot clone ob..... More

Print this item

  Configuration file through helm charts
Posted by: saisankalpj - Aug-23-2022, 01:32 PM - Forum: Web Scraping & Web Development - No Replies

Hi,
Right now My django project is up and running in kubernetes cluster.I have achieved this through helm charts by specifying the docker images path..... More

Print this item

  imap_ssl.search one letter name
Posted by: Linh_lee - Aug-23-2022, 06:28 AM - Forum: General Coding Help - Replies (2)

resp_code, mails = imap_ssl.search(None, '(FROM "a")')
I want to search emails from a specific one letter named user, "a".
Exampl..... More

Print this item

  non-stop ping script
Posted by: kucingkembar - Aug-23-2022, 05:59 AM - Forum: General Coding Help - Replies (1)

Hi, sorry for my bad English,
I have this script from online:
[python]# import modules
from tkinter import *
from pythonping import ping

def g..... More

Print this item

  [Solved]Change text color of one line in TextBrowser
Posted by: Extra - Aug-23-2022, 12:49 AM - Forum: GUI - Replies (2)

Hello,

I'm trying to make a GUI for my Chatbot/Voice Assistant and I'm trying to get the user input to be a different colour than the A.I's respons..... More


Attached Files

Thumbnail(s)
   
Print this item

  ModuleNotFoundError
Posted by: Kjaglewicz - Aug-22-2022, 10:22 PM - Forum: General Coding Help - Replies (5)

So the path is:

[output]secure-erp\
controller\
hr_controller.py
..... More

Print this item

  Generate random id (please help!)
Posted by: Kjaglewicz - Aug-22-2022, 06:23 PM - Forum: General Coding Help - Replies (8)

Hi All!

I need to write a function that returns a random id for an employee. Can anybody tell me why it returns... "None"? I'm stuck with it...

..... More

Print this item

  Use path from browser widget
Posted by: Jguillerm - Aug-22-2022, 03:11 PM - Forum: GUI - Replies (7)

Hi everyone,

I am designing my first GUI app using Tkinter and have somme issues.
The purpose of the app is to read a SWMM file in order to get s..... More

Print this item

  pickle or txt
Posted by: DPaul - Aug-22-2022, 09:23 AM - Forum: Bar - Replies (3)

Hi,
After an OCR-session, I have very large files for people to search for data (prayer cards).
I "dump" them both in text format (.txt) and in bina..... More

Print this item

  First line with digits before last line
Posted by: tester_V - Aug-21-2022, 11:39 PM - Forum: General Coding Help - Replies (5)

Greetings!
I’m parsing log files, 95% of the files have the lines I’m looking for.
5% does not, and I must get the first line (Line starts with date..... More

Print this item

  mutable values to string items?
Posted by: fozz - Aug-21-2022, 08:06 PM - Forum: General Coding Help - Replies (15)

Hi,
I've got the next list:

channels = [
    [ '#channel1', 0 ],
    [ '#channel2', 0 ],
    [ '#channel3', 0 ]
]
I can c..... More

Print this item

  How to write table to different sheet in openpyxl
Posted by: rsearing - Aug-21-2022, 04:02 PM - Forum: Data Science - Replies (2)

I tried using Pandas but am getting errors that I don't understand quite yet when trying to import the file. I am able, however, to import the file ea..... More

Print this item

  Need help with infinite loop & making hotkeys/shortcuts
Posted by: Graxum - Aug-21-2022, 03:20 PM - Forum: General Coding Help - Replies (1)

Before you ask, yes i'm new, i started coding like today, and no i have no idea what i'm doing.

I want to be able to run my code on an infinite loop,..... More

Print this item

  functional LEDs in an array or list? // RPi user
Posted by: Doczu - Aug-21-2022, 03:12 PM - Forum: General Coding Help - Replies (5)

Hi! Total programming noob (not just in Python) here trying to make his code a bit shorter and more readable.

I'm trying to put functional LEDs in ..... More

Print this item

  Tutorials Compilation
Posted by: Knight18 - Aug-21-2022, 07:38 AM - Forum: Tutorial Requests and Submissions - No Replies

Hello everyone. I want to share with you all a complete and exhaustive list of Pygame Tutorials that I have compiled into a single page. It features o..... More

Print this item

  Pandas usecols question
Posted by: rsearing - Aug-20-2022, 06:18 PM - Forum: Data Science - Replies (1)

I am very new to Python (just installed yday) and am workink with Pandas, obviously, also new. I have a large csv file I am trying to read and then se..... More

Print this item

  Function not scriptable: Noob question
Posted by: kaega2 - Aug-20-2022, 06:08 PM - Forum: General Coding Help - Replies (3)

Hey everyone.
I keep getting the error "Function no scriptable". I don't know why.

from tkinter import Menu


[python]MENU = {
"espresso"..... More

Print this item

  PPBD webscraping
Posted by: Mariegain - Aug-20-2022, 09:14 AM - Forum: General Coding Help - Replies (4)

Good morning to all,

I have been having serious problems for the last 2 months because I can't manage to scrape the different tables of the followi..... More

Print this item

  Assistance debuging imaplib errors
Posted by: Linh_lee - Aug-20-2022, 01:41 AM - Forum: General Coding Help - Replies (1)

Hello all,

Getting close to what I want to accomplish, below is new simplified code. I just need assistance please in debugging the errors.

What..... More

Print this item

  Help with conversion program
Posted by: uwl - Aug-19-2022, 08:36 PM - Forum: General Coding Help - Replies (1)

I have errors in my code, it is for converting RGB to Hex in python.
[python]
def color(RGB):
if RGB > 255:
RGB = 255
elif RGB < 0:
..... More

Print this item

  Performance options for sys.stdout.writelines
Posted by: dgrunwal - Aug-19-2022, 08:28 PM - Forum: General Coding Help - Replies (11)

Pythonistas,

I am trying to improve performance of a simple script reading and comparing two 20KB .dat files. The diff assignment takes 42 seconds..... More

Print this item

  Can Python be used as a macro language for excel, Word, etc.?
Posted by: CynthiaMoore - Aug-19-2022, 08:23 PM - Forum: News and Discussions - Replies (8)

I currently use Visual Basic for Applications (VBA) as the macro language for Excel and Word. It's a horrible language. Can Python be used instead?

Print this item

  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string?
Posted by: Winfried - Aug-19-2022, 07:34 PM - Forum: General Coding Help - No Replies

Hello,

I found no example in the tutorial and other sources.

With a select(), ..... More

Print this item

  How to find employees clocked in at two different locations
Posted by: ToussaintOps - Aug-19-2022, 05:51 PM - Forum: General Coding Help - No Replies

So I have this software that shows me when employees at various store locations are clocked in or out. It will spit out the data in either excel forma..... More

Print this item

  Nested for loops: Iterating over columns of a DataFrame to plot on subplots
Posted by: dm222 - Aug-19-2022, 11:07 AM - Forum: General Coding Help - No Replies

Hi all,

I am trying to write some code which iterates over columns in a DataFrame and plots each column in its own subplot.

Take the DataFrame:..... More


Attached Files

Thumbnail(s)
           
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 2 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 5 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578667
  Tutorial Requ... 509038
  Web Scraping ... 441833
  Newbie with P... 385779
  New Users Int... 375008
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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