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,552
» Latest member: Dawinch
» Forum threads: 38,664
» Forum posts: 175,208

Full Statistics

Online Users
There are currently 251 online users.
» 1 Member(s) | 244 Guest(s)
Bing, Google, Yandex, Baidu, Applebot, Curbie

Latest Threads
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 5
» Views: 199
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
6 hours ago
» Replies: 2
» Views: 146
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 101
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,585
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 737
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,211
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 453
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 241
Unable to define function...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:26 AM
» Replies: 2
» Views: 103
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Jul-14-2025, 10:14 AM
» Replies: 6
» Views: 712

 
  Unexpected output from df.loc when indexing by label
Posted by: idratherbecoding - Apr-18-2023, 01:57 AM - Forum: General Coding Help - Replies (6)

I am back again with another pandas question. I am getting some unexpected output from df.loc. As part of a larger project, I broke my problem out int..... More

Print this item

  Turtle Detection
Posted by: ChinaPlaneFlyer - Apr-17-2023, 02:22 PM - Forum: General Coding Help - Replies (1)

Hi! I'm a new member here on the forum. I was trying to make a turtle tag game and I was trying to find if the first turtle, p1, is touching the secon..... More

Print this item

  Trouble with threading and reading variable from a different script
Posted by: Lembas - Apr-17-2023, 01:59 PM - Forum: General Coding Help - Replies (14)

Hi.
As a learning exercise I decided to write a simple pixel bot for a game. It consists of 3 modules that I would like to run at the same time:
Walk..... More

Print this item

  which is faster?
Posted by: Skaperen - Apr-17-2023, 12:11 AM - Forum: News and Discussions - Replies (5)

which is faster when arg1 is None?

code 1:

def fun1(arg1,arg2):
    if arg1 is None:
        return None
    . . .
code..... More

Print this item

  '' FTP '' File upload with a specified string and rename
Posted by: midomarc - Apr-17-2023, 12:05 AM - Forum: General Coding Help - Replies (1)

Transfer a file in Local folder to a folder in FTP server and rename

I need to upload a file start with a specified string (0001) to an FTP..... More

Print this item

  ESPNow on Andriod Python
Posted by: xytsrm - Apr-16-2023, 07:08 PM - Forum: Networking - Replies (2)

Is anyone aware of an Android Python package created to interact with the ESPNow peer-to-peer networking protocol used on Espressif devices?

Thanks..... More

Print this item

Sad Help solving an exercise?
Posted by: darioco - Apr-16-2023, 06:49 PM - Forum: Homework - Replies (3)

hey all,
I'm struggling in solving an exercise of my python introduction course. I leave the problem in the attachments. I'm really at the beginning ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Embedding python script into html via pyscript
Posted by: pyscript_dude - Apr-16-2023, 12:03 PM - Forum: General Coding Help - Replies (7)

Hi everyone,
I want to embed a python script into an html page by using pyscript. What I am trying is giving a sequence of integers as "1,2,3,4,5,6" a..... More

Print this item

  Inferring background code.
Posted by: quazirfan - Apr-15-2023, 10:34 PM - Forum: General Coding Help - Replies (5)

Given an object instantiation and invocation, can I broadly say the following?

Given the following two lines of code,
[python]
test = Test()
tes..... More

Print this item

  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor'
Posted by: birajdarmm - Apr-15-2023, 11:59 AM - Forum: General Coding Help - Replies (1)

Hi,

I am creating a code which would export data from multiple tables in oracle to one excel file having each sheet as one tbale export. I have cre..... More

Print this item

  I downloaded a script and I cant run this
Posted by: luoxr18 - Apr-15-2023, 09:19 AM - Forum: General Coding Help - Replies (3)

Hi, I’m a newbee to programming (and not a native speaker), recently I download a script from hugging face, and strictly follow every steps. (CiaraRow..... More

Print this item

  Finding a way to avoid loops use
Posted by: paul18fr - Apr-15-2023, 09:01 AM - Forum: Data Science - Replies (6)

Hi

Using loops is a bottleneck in term of performance; I’m often facing such issue, I’m not satisfied by the current code and I’m still looking for..... More

Print this item

  How to fix With n_samples=0, test_size=0.2 and train_size=None, the resulting train s
Posted by: MrSonoa - Apr-15-2023, 04:51 AM - Forum: General Coding Help - Replies (2)

I wrote a text classification program. When I run the program have error. How to fix it?

[python]

input_shape = (128, 128, 3)
data_dir = '/cont..... More

Print this item

  New with Python. Help with a code
Posted by: jasonkeller1970 - Apr-14-2023, 05:43 PM - Forum: General Coding Help - Replies (13)

Hi,
I just registered in this site because I would like to know if it is possible to solve this problem with a simple Python code.
I'm not into prog..... More

Print this item

  appending 50 values in a row
Posted by: Naomisaka - Apr-14-2023, 11:17 AM - Forum: General Coding Help - No Replies

Hello, I hope this is a quick fix for the pros!

I'm working in Touchdesigner and I'm trying to append all 50 values from row 0:50 from an operator ..... More


Attached Files

Thumbnail(s)
   
Print this item

  logger behaviour
Posted by: setdetnet - Apr-14-2023, 08:48 AM - Forum: General Coding Help - Replies (1)

This setup in python 3.10 is not logging DEBUG to log file.
As in the last line....rootLogger.debug("debugging MantisMigrateAdditionalInfo.py")
Why..... More

Print this item

  event driven coding PyQt6 on Combobox change
Posted by: merrittr - Apr-14-2023, 01:55 AM - Forum: GUI - Replies (3)

I have the working code below running in a venv using python 3.7.6 what I want is when the Province combobox is changed have the stations combobox upd..... More


Attached Files

.py   HTTPListerProvincialQTEnv.py (Size: 2.54 KB / Downloads: 261)
Print this item

  notation
Posted by: MCL169 - Apr-14-2023, 01:49 AM - Forum: General Coding Help - Replies (8)

[python]
for line in lines: # str, '19260701,0.09,-0.22,-0.30,0.009\n'
curr_line = line.split() ..... More

Print this item

  scipy fftfreq parameters
Posted by: quest - Apr-14-2023, 12:11 AM - Forum: Data Science - Replies (1)

I am trying to get the fft of my pulse.
My total pulse duration is 1 microsecond and I have 100000 time slot in this pulse. So each interval correspon..... More

Print this item

  replacing dict contents
Posted by: Skaperen - Apr-13-2023, 10:25 PM - Forum: General Coding Help - Replies (6)

for a reference to a list, such as a global list, i can replace all the contents like this:
[python]
mylist[:] = newlist
[/pyt..... More

Print this item

  output provide the filename along with the input file processed.
Posted by: arjunaram - Apr-13-2023, 10:08 AM - Forum: General Coding Help - Replies (1)

Currently, i am processing all the input file column together and find missing column name from the table.

I am expecting to print the filename as ..... More

Print this item

  Modules
Posted by: GrahamLab - Apr-13-2023, 08:10 AM - Forum: General Coding Help - Replies (1)

Hi

I am fairly new to Python and modules in particualar

I have folder containing 2 files :
Configuration.py
HelixApi.py

COnfiguration..... More

Print this item

  Need help with this script
Posted by: Alie - Apr-13-2023, 06:22 AM - Forum: General Coding Help - Replies (3)

Hello friends. Below is a code I use in Google Colab. It works so slow that I wait for hours. Is it possible to edit this code to run faster? I would ..... More

Print this item

  html_table_parser_python3 KeyError odd behavior
Posted by: idratherbecoding - Apr-13-2023, 04:20 AM - Forum: General Coding Help - Replies (3)

Hello,

I am new to Python, but I have been hobby coding off and on for many years. I am working on a project to scrape sports data (NFL) and I am r..... More

Print this item

  Problem Calculating GPA
Posted by: FirstBornAlbratross - Apr-12-2023, 08:19 PM - Forum: Homework - Replies (3)

Hey all, I have created a simple program to try to convert letter grades into a GPA score, but my program calculations are a bit off.

[python]user_..... More

Print this item

  Pixel color and action
Posted by: Sartre - Apr-12-2023, 06:06 PM - Forum: General Coding Help - Replies (4)

I am very new to Python and decided to build a game bot as a means of learning. Please bear with me..

GOAL:
Part of my program evaluates a specific ..... More

Print this item

  Problems with converting to numeric
Posted by: EmBeck87 - Apr-12-2023, 05:14 PM - Forum: Homework - Replies (13)

This code for converting the values to numeric is also removing characters, I believe.

Can someone advise on how to alter it so it keeps the chara..... More

Print this item

  Printing specific values out from a dictionary
Posted by: mcoliver88 - Apr-12-2023, 04:52 PM - Forum: General Coding Help - Replies (6)

Hi All,

So I have created a dictionary:

[python]
myDict = {
"Name": {"Kindle Fire", "Samsung Galaxy Tab", "Dell Streak", "Apple iPad", "Len..... More

Print this item

  What module is missing?
Posted by: Led_Zeppelin - Apr-12-2023, 04:21 PM - Forum: General Coding Help - Replies (2)

I am getting thee error as shown in the following attachment. It says normal not found. I guess I am missing a library/module.

So, what module shou..... More


Attached Files

Thumbnail(s)
   
Print this item

  Understanding and debugging memory error crashes with python3.10.10
Posted by: Arkaik - Apr-12-2023, 03:36 PM - Forum: General Coding Help - Replies (5)

Hi,

I have a quite complex multi-threaded python script on a production environment (Debian 11.6 server) which regularly crashes using python3.10.1..... More

Print this item

  can someone explain this __del__ behaviour?
Posted by: rjdegraff42 - Apr-12-2023, 02:37 PM - Forum: General Coding Help - Replies (1)

I came across something interesting that I can't explain. Perhaps someone here can. When the following code is run with the lambda commented out it pr..... More

Print this item

  Newbie.... run for cover. OpenCV question
Posted by: Stevolution2023 - Apr-12-2023, 11:38 AM - Forum: General Coding Help - Replies (2)

Hello all

I have jumped in the deep end of Python. Done a little programming before, but not much in Python.

I found some OpenCV skeleton track..... More

Print this item

  Test Thread
Posted by: snippsat - Apr-12-2023, 04:35 AM - Forum: Board - No Replies

[python]from pathlib import Path
from os import fspath

dest = r'C:\bar'
with open('out1.txt', 'w') as f:
for path in Path(dest).rglob('*'):..... More

Print this item

  code won't advance to next statement
Posted by: MCL169 - Apr-11-2023, 07:53 PM - Forum: General Coding Help - Replies (2)

[python]
while True: # bool, True
year = input('please enter a 4-digit year: ')
digit = len(y..... More

Print this item

  Tkinter GUI question
Posted by: texan1836 - Apr-11-2023, 05:31 PM - Forum: GUI - Replies (3)

I am having trouble writing a python tkinter GUI. I am trying to create a popup window which has a grid of buttons that then returns a value. In the..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  gpiozero buttons stop wor... 1 hour ago duckredbeard deanhystad General Codin...
  How to package code for d... 6 hours ago mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
  RemoTe server operation w... 07-14, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering 07-14, 09:36 deanhystad deanhystad GUI
Most views
  The best Prog... 572714
  Tutorial Requ... 485779
  Web Scraping ... 437170
  Newbie with P... 380135
  Thread remain... 351391
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Dawinch Today
ShanePulse Today
augustuswest Today
Yuvaraju Today
GPX005631 Today

User Panel Messages

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