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,932
» Latest member: krish12
» Forum threads: 38,720
» Forum posts: 175,502

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 37 Guest(s)
AOL, Google, Bing, Mojeek, AOL, Facebook, buran

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: deanhystad
9 hours ago
» Replies: 3
» Views: 945
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 387
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-15-2025, 08:58 PM
» Replies: 8
» Views: 2,540
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,566
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 462
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 145
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 2,968
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,213
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 894
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,294

 
  Adding MIDI Channels to each Input
Posted by: zach1234 - Apr-18-2023, 06:38 PM - Forum: General Coding Help - Replies (6)

Hi Guys, apologies as i am a complete beginner.

I downloaded this python script to map my midi controller to Ableton Live. I am having a problem w..... More


Attached Files

.zip   MixTrack_Quad.zip (Size: 39.29 KB / Downloads: 348)
Print this item

  Print confusion matrix
Posted by: MrSonoa - Apr-18-2023, 03:53 PM - Forum: General Coding Help - Replies (1)

hi, I have tried my best to output the confusion matrix. but it didn't work either. I don't know what coding can produce the output for the confusion ..... More


Attached Files

Thumbnail(s)
   
Print this item

  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: 278)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 9 hours ago RonR deanhystad GUI
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  403 Error 09-15, 20:58 CaptainNewb snippsat Web Scraping ...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 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...
  Python Installation issue 09-14, 11:16 RFHill Dev News and Disc...
Most views
  The best Prog... 575846
  Tutorial Requ... 497183
  Web Scraping ... 439848
  Newbie with P... 383564
  New Users Int... 365590
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 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
krish12 Today
XenonBlack Yesterday
Lenowell Yesterday
luisshulez6883 09-15
KennedyRichadGuerra 09-15

User Panel Messages

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