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,243
» Latest member: dimitriwati
» Forum threads: 38,777
» Forum posts: 175,799

Full Statistics

Online Users
There are currently 52 online users.
» 2 Member(s) | 44 Guest(s)
Bing, AOL, Applebot, Mojeek, tsgiannis, kshahzad1985

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
6 minutes ago
» Replies: 5
» Views: 138
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:37 AM
» Replies: 1
» Views: 64
Data Science
Forum: Data Science
Last Post: mamta25
Today, 05:27 AM
» Replies: 3
» Views: 2,582
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 156
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 143
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 143
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,429
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,386
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,586
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 221

 
  Set screen saver time?
Posted by: Extra - Jan-23-2022, 08:24 PM - Forum: Bar - Replies (2)

Hello,

I'm wondering if it's possible to have the screen saver come on at a certain time and turn off at a certain time.
Ex) if it's 10:00pm then ..... More

Print this item

  main lop in python tkinter
Posted by: barryjo - Jan-23-2022, 04:57 PM - Forum: GUI - Replies (6)

I have some code like this in my tk program..
[python]
root = tk.Tk()

# (code like entry boxes, labels, functions, etc.)

roo..... More

Print this item

  Python Program to Find the Total Sum of a Nested List
Posted by: vlearner - Jan-23-2022, 04:09 PM - Forum: General Coding Help - Replies (8)

kindly guide me how should I proceed to solve this problem:
[[4,5],[7,8,[20]],100]

Print this item

  SyntaxError: invalid syntax ??
Posted by: korenron - Jan-23-2022, 01:48 PM - Forum: General Coding Help - Replies (15)

Hello ,
starnge problem
I have a working python code that print me canbus data
today I enter the code to a new machine and I get this error (jus..... More

Print this item

  Problem with a minimax algorith in Tic,Tac,Toe
Posted by: Daniel_Gargallo - Jan-23-2022, 12:55 PM - Forum: Homework - Replies (5)

Greetings to everyone,
I am a student from Spain, so I am sorry if there's some words wrong. I am doing a project for school and now I have to do a b..... More

Print this item

Lightbulb Could I kindly petition for an adoption of a MySQL/MariaDB sub-forum for the site?
Posted by: BrandonKastning - Jan-22-2022, 08:15 PM - Forum: Board - Replies (2)

Could I kindly petition for an adoption of a MySQL/MariaDB sub-forum for the site?

I think it would add value; I am learning MariaDB and would post..... More

Print this item

  Float Slider - Affecting Values in Column 'Pandas'
Posted by: planckepoch86 - Jan-22-2022, 02:18 PM - Forum: General Coding Help - No Replies

Hi All,

New to python and pandas but enjoying so far and become a little stuck. I'm building a function which is built up of a slider that when mov..... More


Attached Files

Thumbnail(s)
   
Print this item

  DataFrame .xlsx max()
Posted by: bnadir55 - Jan-22-2022, 10:55 AM - Forum: General Coding Help - Replies (6)

Friends!
I have a data frame from .xslx that return 4 columns, order id, order date, order requester, order urgency,
I want to return the max() orde..... More

Print this item

Sad Selenium: can't open a new window after clicking a button and I don't know why
Posted by: noahverner1995 - Jan-22-2022, 09:51 AM - Forum: General Coding Help - No Replies

I have a simple python program that opens this page with chromedriver.exe, then it clicks on the walle..... More

Print this item

  first class objects
Posted by: Skaperen - Jan-22-2022, 02:52 AM - Forum: News and Discussions - No Replies

i have read about first class objects and seen some examples. but, what confuses me is what is not a first class object and what is it called?..... More

Print this item

  Questions about Web Scraping
Posted by: Extra - Jan-21-2022, 09:49 PM - Forum: General Coding Help - Replies (1)

Hello,

I recently built a Magic Mirror(smart mirror) with my Rpi3 and I would like to have some of my..... More

Print this item

  Increase the speed of a python loop over a pandas dataframe
Posted by: mcva - Jan-21-2022, 06:24 PM - Forum: General Coding Help - No Replies

Hi
I´m using the following code to fill a dataframe with values that are stored in a .nc file

This code is quite slow. The speed can be improved ..... More

Print this item

  saving and loading text from the clipboard with python program
Posted by: MaartenRo - Jan-21-2022, 02:58 PM - Forum: General Coding Help - Replies (2)

Hi,

I am doing an assignment from a python learning book. I have to make a program that saves and loads pieces of text to the clipboard. Somehow, w..... More

Print this item

  How to delete portion of file already processed?
Posted by: Mark17 - Jan-21-2022, 02:13 PM - Forum: General Coding Help - Replies (13)

test_file is an Excel .csv file that has one word in each cell reading down in column A:
"this is a test to see if the present rows can be read the..... More

Print this item

  pymysql: insert query throws error
Posted by: wardancer84 - Jan-21-2022, 12:52 PM - Forum: General Coding Help - Replies (12)

hi,

i',m trying to parse sudo files and inserting the results into a mysql table for eaysier analyzing an so on. parsing works well sof far, but py..... More

Print this item

  Making entry global in tkinter with multiprocessing
Posted by: luckyingermany - Jan-21-2022, 12:48 PM - Forum: GUI - Replies (2)

hello guys, I need some help figuring out a bug in the code.

Basically, I am trying to figure out how to make an entry in tkinter a global variabl..... More

Print this item

  Simple syntax to asynchronously get access to MODBUS register
Posted by: orion67 - Jan-21-2022, 12:04 PM - Forum: General Coding Help - Replies (1)

I am trying to run three simple tasks in parallel using asyncio and sharing global variables.
Two of them are working perfectly. One read websockets ..... More

Print this item

Exclamation Please help me with my connect 4 game im beyond despair and I have it due in 4 days
Posted by: JuanT05 - Jan-21-2022, 11:58 AM - Forum: Homework - Replies (1)

THIS IS NOT PART OF THE CODE ONLY SOME GUIDING TOWARDS WHERE MY PROBLEMS ARE
The function that checks for diagonal lines wont detect them.
---------..... More

Print this item

  Clock\time calculation script
Posted by: Drone4four - Jan-21-2022, 10:55 AM - Forum: General Coding Help - Replies (3)

I’m trying to write a dynamic script which takes in various hours/minutes as input data and then formats the output to Hour:Minute.

I figure to ac..... More

Print this item

  batch file for running python scipt in Windows shell
Posted by: MaartenRo - Jan-21-2022, 07:46 AM - Forum: General Coding Help - Replies (2)

Hi,

I am doing an assignement in a Python learning book in which i have to run my Python script in the Windos shell. It says that i have to make a ..... More

Print this item

  Snake game: how to get an instance for my snake's body multiple times?
Posted by: hajebazil - Jan-21-2022, 04:27 AM - Forum: Game Development - Replies (2)

i am totaly begginer in programming and i am learning all by myself,sooo ty in andvance for any help. i am trying to make a snake game using pygame.My..... More

Print this item

  Understanding a piece of code
Posted by: Michael1 - Jan-20-2022, 06:25 PM - Forum: General Coding Help - Replies (4)

def area(x,y = 3.14): # formal parameters
    a = y*x*x
    print (a)
    return a

a = area(10)
print("area",a)
* Here is w..... More

Print this item

  Homework Hangman Game
Posted by: jagr29 - Jan-20-2022, 05:32 PM - Forum: Homework - Replies (3)

Can someone tell me please how the code parts commented with # ******************** work?
It works but I don´t understand what they..... More


Attached Files

.py   Hangman_2.py (Size: 4.2 KB / Downloads: 315)
Print this item

  Calling exe on network drive
Posted by: GrahamL - Jan-20-2022, 03:33 PM - Forum: General Coding Help - Replies (4)

Hi
I am trying to call an exe on a network drive
[python]
d = "x:\\\RequirmentsEditorInstall.exe"
subprocess.run([d,
'/silen..... More

Print this item

  match type with value in csv parsing function
Posted by: vinci - Jan-20-2022, 01:33 PM - Forum: General Coding Help - Replies (2)

Hello,

In the following code I do some parsing of files (csv):
[CODE]
#!/usr/bin/env python3

import csv

def parse_csv(filename, select=None, types=..... More

Print this item

  add Escape charcters in string
Posted by: GrahamL - Jan-20-2022, 10:45 AM - Forum: General Coding Help - Replies (3)

Hi
I am trying to call an application from a python script in an Azure Devops pipeline
I build a string to the app path
[python]cmd = "C:\Program F..... More

Print this item

  Chatbot AI
Posted by: mmagner2022 - Jan-20-2022, 04:01 AM - Forum: Data Science - Replies (1)

Hello. I am following a tutorial to create an AI chatbot yet I keep getting this error. Any help would be greatly appreciated.

json.decoder.JSOND..... More

Print this item

  Cannot convert the series to <class 'int'> when trying to create new dataframe column
Posted by: Mark17 - Jan-20-2022, 12:53 AM - Forum: General Coding Help - Replies (3)

Hi all,

I have a dataframe df2 with a 'DATE' column that starts with 17169 in row 2. I'm trying to create a new column with a human readable forma..... More

Print this item

Question Scraping Wikipedia Article (Name in 1 column & URL in 2nd column) ->CSV! Anyone?
Posted by: BrandonKastning - Jan-19-2022, 11:39 PM - Forum: Web Scraping & Web Development - Replies (4)

Scraping Wikipedia Article (Name in 1 column & URL in 2nd column) ->CSV! Anyone?

Targeted Columns & All Links

Does anyone ..... More

Print this item

  Python keeps running the old version of the code
Posted by: quest - Jan-19-2022, 11:22 PM - Forum: General Coding Help - Replies (2)

Hello
I have a very weird problem
I am using ubuntu 20.04
I am running my code in terminal like that:

python3 code.py
A..... More

Print this item

  Switch case or match case?
Posted by: Frankduc - Jan-19-2022, 06:14 PM - Forum: General Coding Help - Replies (9)

Hello,

I hate to ask again but i am trying to introduce a switch statement to get rid of if, else statements.

This is the original code and i wo..... More

Print this item

  Handling pdf files with python.
Posted by: fuzzin - Jan-19-2022, 02:11 PM - Forum: General Coding Help - Replies (1)

I'm working on a project that identifies certain words in a PDF file. Once I find the words, I want to leave them marked in the file. Is it possible t..... More

Print this item

Question Installing Security only updates for 3.7.12
Posted by: DailyLlama - Jan-19-2022, 12:47 PM - Forum: General Coding Help - Replies (3)

I am not a Python developer, I am an IT admin who manages SCCM deployments. Part of my role is to keep applications up to date so that security patche..... More

Print this item

  Write the Matrix2 by using Matrix1
Posted by: quest - Jan-19-2022, 12:20 PM - Forum: General Coding Help - Replies (18)

I have this matrix1 which has free values(means that not have numbers but have variables):
[python]
[[rho00 rho01 rho02 rho03 rho04 rho05 rho06 rho..... More

Print this item

  Receiving snmp traps with more than one Community String
Posted by: ilknurg - Jan-19-2022, 09:02 AM - Forum: General Coding Help - No Replies

I have the below snmp trap receiver. I have two community string, public and private.
I want to get traps from the devices who has com. string public..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 6 minutes ago tsgiannis tsgiannis GUI
  [split] print two differe... Today, 05:37 Reema Gribouillis General Codin...
  Data Science Today, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 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
Most views
  The best Prog... 578746
  Tutorial Requ... 509488
  Web Scraping ... 441878
  Newbie with P... 385844
  New Users Int... 375429
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 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
dimitriwati Today
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today

User Panel Messages

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