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,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,822

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 35 Guest(s)
Bing, Google, AOL, Internet Archive

Latest Threads
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 2
» Views: 70
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 12:09 PM
» Replies: 4
» Views: 121
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 212
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 344
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 302
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 131
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,631
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 225
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 216
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,596

 
  NFC reader code help
Posted by: johnroberts2k - Jul-01-2021, 07:16 PM - Forum: General Coding Help - Replies (1)

I have the following python code which continuously listens for NFC chip presence and when detected it prints the UID (ident)

[python]
from nfc i..... More

Print this item

  400 Bad Request
Posted by: Skaperen - Jul-01-2021, 06:16 PM - Forum: Board - No Replies

i got 400 Bad Request when trying to preview a new thread. when i clicked on the button to go back (to try that, again) i got the posting form..... More

Print this item

  Carlssons method for log
Posted by: Gusbagro - Jul-01-2021, 05:49 PM - Forum: General Coding Help - Replies (2)

Anyone have experiance from the Carlssons method for log?
I have this code but it doesnt seem to work.
[python]
def fast_approx_ln(x,n):
d = e..... More

Print this item

  Not getting response from pyaudio
Posted by: OceansBlue - Jul-01-2021, 04:58 PM - Forum: General Coding Help - Replies (1)

I am not able to communicate using the laptop microphone

Here is my code
[python]import smtplib # Simple Mail Transfer Protocol
import pyaudio
i..... More

Print this item

  How to get array fit/transform to be correct?
Posted by: Oliver - Jul-01-2021, 04:18 PM - Forum: Data Science - No Replies

I am trying to fit/transform a (1,2) ndarray, but I keep getting zeros instead of transformed values.

[python]
sc = StandardScaler()
test_data = ..... More

Print this item

  groupby cast to int where possible
Posted by: mikisDeWitte - Jul-01-2021, 01:39 PM - Forum: General Coding Help - Replies (2)

Hello,

I need to create a nested dictionary like so:
d= {"ftsg2a_co422": {1: 'visited or contacted', 0: 'not visited not contacted'}}

this dictionar..... More

Print this item

  [split] Help- converting file with pyton script
Posted by: eltomassito - Jul-01-2021, 01:29 PM - Forum: General Coding Help - Replies (6)

Is it possible to get another help with this script https://github.com/ypomortsev/ccss2edr?
How to run it after installing default python environmen..... More

Print this item

  cancelling open dialog gives empty string
Posted by: rwahdan - Jul-01-2021, 01:04 PM - Forum: GUI - Replies (2)

Hi,

I am trying to open a file using the file dialog but what if the user decides to press cancel? a new line is added to my text widget. I don't w..... More

Print this item

  Request library already satisfied? Pip related
Posted by: BobTobb - Jul-01-2021, 04:23 AM - Forum: General Coding Help - Replies (1)

Apologies but this doesn't seem to fit in any other forum category. Maybe there's a dedicated PIP forum somewhere?

[code]
% python process.py
Y..... More

Print this item

Sad ValueError: could not convert string to float
Posted by: badju - Jul-01-2021, 12:03 AM - Forum: Data Science - No Replies

I am trying to convert an entire column (actually, three) to float, but there's something getting wrong.

This is the code:
[python]
series = df[..... More

Print this item

  deleting an empty Dir, using pathlib.Path
Posted by: tester_V - Jun-30-2021, 11:18 PM - Forum: General Coding Help - Replies (9)

Greetings!
I'm trying to use pathlib.Path to identify empty Subdirectories (and delete them).

For some reason, my code cannot identify if a Subdir..... More

Print this item

  Pygame Help
Posted by: piznac - Jun-30-2021, 09:58 PM - Forum: Game Development - Replies (6)

Hello! I have been running into a issue with drawing rectangles, blitting text, querying a DB etc etc inside the game loop. The rectangles or text app..... More

Print this item

  logical error - saving file
Posted by: rwahdan - Jun-30-2021, 09:35 PM - Forum: GUI - Replies (4)

I am trying to open new file but want to check if there is something in the current file before opening a new file so it can be saved. I have the foll..... More

Print this item

  Unexpected EOF
Posted by: JeffTech - Jun-30-2021, 04:32 PM - Forum: General Coding Help - Replies (3)

Hi! New guy here! (I'm sure that your FAVORITE thing to read right off the top)

Anyway, I've been working on this script (my first in Python) and d..... More

Print this item

  Passing information with a function
Posted by: Krisve94 - Jun-30-2021, 03:02 PM - Forum: GUI - Replies (3)

I am unsure if this is the right forum, but since it concerns a wigdet it seemed appropriate.

In line 26 the line [b]"strength_entry.bind('<Return>',..... More

Print this item

  reading html and edit chekcbox to html
Posted by: jacklee26 - Jun-30-2021, 01:50 PM - Forum: General Coding Help - Replies (5)

I have a question about reading HTML files, and edit by adding a checkbox before a tag on every link.

I have a test.html that looks like this:
[..... More

Print this item

  count item in list
Posted by: korenron - Jun-30-2021, 01:09 PM - Forum: General Coding Help - Replies (8)

Hello,
how can I count part of items in list?

to be clear :
I have a list that build in this form
Final_List= [['10.0.0.1:Success', '10.0.0.2:Succes..... More

Print this item

  can I tell how much cpu is used by a program?
Posted by: korenron - Jun-30-2021, 12:32 PM - Forum: General Coding Help - Replies (1)

hello ,
I have start to use "multiprocessing \ Pool " to run some code
and I want to know how much I'm using now (without the pool)
how much use..... More

Print this item

  Py script that triggers ever 3 hours, but only between 9:15 am to 3:30 pm, Mon to Fri
Posted by: Pymod - Jun-30-2021, 07:50 AM - Forum: General Coding Help - Replies (2)

I'm running a AWS Ubuntu server with python. How do I run a script that triggers every 3 hours, from 9:15AM to 3:30 PM, Monday to Friday.

I'm looki..... More

Print this item

  acess particular element in dataframe using .loc operator.
Posted by: shantanu97 - Jun-30-2021, 03:58 AM - Forum: General Coding Help - No Replies

I have two dataframe. Please see attached image.Sometimes in my code dataframe 1 comes but sometimes in my dataframe 2 comes. I want to access the ele..... More


Attached Files

Thumbnail(s)
   
Print this item

  Could Someone help me with List problem
Posted by: alexsendlegames100 - Jun-30-2021, 02:22 AM - Forum: General Coding Help - Replies (1)

[python]
import math

A = list(map(int, input()))

B = list(map(int, input()))

#C = list(map(int, input()))

if A,B < len(3):
print(D_1)..... More


Attached Files

.py   _1.py (Size: 296 bytes / Downloads: 353)
Print this item

  How to capture string from a line to certain line
Posted by: jerald - Jun-30-2021, 01:16 AM - Forum: General Coding Help - Replies (1)

I have a file called abc.py with has several function which is the code below. I have another python file to extract abc.py as string.
GOAL: h..... More

Print this item

  BeautifulSoup pagination using href
Posted by: rhat398 - Jun-29-2021, 10:22 PM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to scrape all thee events from https://www.onthisday.com/events/february/5 I am get..... More

Print this item

  my python file closing
Posted by: rwahdan - Jun-29-2021, 10:19 PM - Forum: General Coding Help - Replies (1)

I have 2 python files in the same directory. I have a menu that will call the 2nd python file to play a movie after choosing one. It is working fine u..... More

Print this item

  Inheritance vs Union
Posted by: gserranowong - Jun-29-2021, 05:03 PM - Forum: General Coding Help - Replies (3)

First of all, I realize inheritance and Unions are totally two different things. However, I would like to get your opinions on this issue I detail bel..... More

Print this item

  Try,Except,Else to check that user has entered either y or n (Code block pasted)
Posted by: RandomNameGenerator - Jun-29-2021, 03:09 PM - Forum: General Coding Help - Replies (3)

Hey up, pretty simple query. I just want to check the user has entered either y or n , its going straight to the else: regardless of the input
Thanks..... More

Print this item

  I can't play MP4 files
Posted by: rwahdan - Jun-29-2021, 10:58 AM - Forum: GUI - Replies (11)

Hi,

I am trying some code I found in the community but I want to be able to play MP4 files but can't.

[python]
class window(QWidget):
def ..... More

Print this item

  Caesar Cipher Help
Posted by: pbrowne - Jun-29-2021, 07:20 AM - Forum: General Coding Help - Replies (2)

The following Caesar Cypher code is not working (Python 3). The text file is being written, but with incorrect cipher.

e.g. Input text as 'Hello' s..... More

Print this item

  Can I open\use threading in Python?
Posted by: korenron - Jun-29-2021, 06:45 AM - Forum: General Coding Help - Replies (2)

Hello
want to know if I can do this \ how

I have a code that open FTP and send files to my devices from DB list.

my problem is that it take to..... More

Print this item

  Calculator exceptions
Posted by: HereweareSwole - Jun-29-2021, 04:30 AM - Forum: Homework - Replies (5)

Hello everyone,
Could anyone tell me how I could create a exception (error handling) to deal with users who put letters or "+"/"-" into the calculato..... More

Print this item

  Sum similar items
Posted by: tester_V - Jun-29-2021, 04:09 AM - Forum: General Coding Help - Replies (3)

Greetings!
I'm trying to sum(count) similar items in a file.
File example:
[python]
PRQ09_PCX0161Host,DV1
PRQ09_PCX0170Host,PHQ
PRQ09_PCX0171Hos..... More

Print this item

  string.format() suddenly causing errors with google drive API
Posted by: zwitrader - Jun-28-2021, 11:38 PM - Forum: General Coding Help - No Replies

This morning I abruptly started having problems with previously working (unchanged) code to access google drive via their API.

Briefly, the followi..... More

Print this item

  An implementation of Dijkstra's shortest path algorithm
Posted by: Gribouillis - Jun-28-2021, 10:39 PM - Forum: Code sharing - Replies (1)

I wanted an implementation of the shortest path algorithm in the case where the nodes of a potentially infinite graph are generated on the fly, so her..... More

Print this item

  is this a good way to catch exceptions?
Posted by: korenron - Jun-28-2021, 10:28 AM - Forum: General Coding Help - Replies (14)

Hello ,
I have a small app that uplaod file to my devices using FTP and update the DB.
it's working
my question is - is the "Exceptions" part good? ..... More

Print this item

  [Solved] Reading every nth line into a column from txt file
Posted by: Laplace12 - Jun-28-2021, 09:47 AM - Forum: General Coding Help - Replies (7)

Hey!

I have a text file that I want to sort out. I've coded this and tried dataframe, but that only prints the last line. The code I have now is t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  why is the image not show... 10 hours ago sarbogast deanhystad General Codin...
  New to python and coding Yesterday, 12:09 lary_p jefsummers Homework
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [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...
Most views
  The best Prog... 578891
  Tutorial Requ... 510050
  Web Scraping ... 441931
  Newbie with P... 385942
  New Users Int... 376596
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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