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,393
» Latest member: aurelio12282025
» Forum threads: 38,821
» Forum posts: 176,018

Full Statistics

Online Users
There are currently 29 online users.
» 0 Member(s) | 22 Guest(s)
Apple, Bing, Mojeek, Google, AOL, AOL

Latest Threads
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 83
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 240
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,073
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,899
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 140
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 85
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 153
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,298
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 114
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 757

 
  How can I solve this file handling issue?
Posted by: GiggsB - Feb-12-2022, 06:52 AM - Forum: General Coding Help - Replies (17)

I am using SPI communication protocol, where a microcontroller sends data to the Raspberry Pi. Raspberry Pi collects this data and stores it in a file..... More

Print this item

  About Tkinter Treeview.selection_get() usage.
Posted by: water - Feb-11-2022, 07:03 PM - Forum: GUI - Replies (3)

Tkinter Treeview widget has selection_get, but document not introduce about that, how to use it?

[python]from tki..... More

Print this item

  PYQT charts in tabs
Posted by: frohr - Feb-11-2022, 06:55 PM - Forum: General Coding Help - Replies (10)

Hi, I need draw charts in two tabs. It there any easy way how to do it? Thank you for help.

This is my code.

[python]
import sys
from PyQt5.Q..... More

Print this item

  Hi can you help me this reaction kinetics
Posted by: Vengdasan - Feb-11-2022, 03:54 PM - Forum: General Coding Help - Replies (4)

[python]
import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
import math

def rxn(M,t):
R = 8.314
T ..... More

Print this item

  [split] Results of this program in an excel file
Posted by: eisamabodian - Feb-11-2022, 12:31 PM - Forum: General Coding Help - Replies (1)

Hi.
I want to get the results of this program in an excel file.
Nine numbers.I have the results in terminal in python without any problem but how ca..... More

Print this item

  Playing around with a clock's seconds in tkinter
Posted by: menator01 - Feb-11-2022, 10:25 AM - Forum: Code sharing - Replies (1)

Has a grid of numbers from 00 - 59 that highlights the background matching the clocks seconds.

[python]
import tkinter as tk
from time import str..... More

Print this item

  How can I ignore empty fields when scrapping
Posted by: never5000 - Feb-11-2022, 09:19 AM - Forum: Web Scraping & Web Development - No Replies

I'm gathering Card data for a game I like. some cards don't have the certain text and others do, the script searches for it and when it comes across a..... More

Print this item

  CSV to Text File and write a line in newline
Posted by: atomxkai - Feb-11-2022, 12:35 AM - Forum: General Coding Help - Replies (4)

Hello,
The script generates output as 1 line for each record but I wanted to separate the output that looks like this. Your response is greatly app..... More


Attached Files

.csv   datafile.csv (Size: 161 bytes / Downloads: 335)
Print this item

  How to insert different types of data into a function
Posted by: DrData82 - Feb-10-2022, 10:41 PM - Forum: General Coding Help - No Replies

I'm trying to design a function that will insert both a different "oldTable", string, and column name for each iteration. The "withColumn" calculation..... More

Print this item

  Migrating data from oracle into postgres
Posted by: python_student - Feb-10-2022, 08:52 PM - Forum: General Coding Help - Replies (1)

I am trying to migrate data from oracle into postgres using python. My code follow bellow.

[python]def insert_postgres():

con = OracleHook(..... More

Print this item

  Find if chain of characters or number
Posted by: Frankduc - Feb-10-2022, 05:29 PM - Forum: General Coding Help - Replies (4)

Hello,

Try to determine if its a chain of characters or numbers.

[python]
mot = input("input something: ")

for num in mot:
if num not in "0123..... More

Print this item

  How can I target and scrape a data-stat
Posted by: never5000 - Feb-10-2022, 04:29 PM - Forum: Web Scraping & Web Development - Replies (5)

I’m trying to scrape data from page.
There are no classes in the HTML that I can use, but they do have data-stat ID’s how can I target them to scrap..... More

Print this item

  Inverted Index
Posted by: thewal - Feb-10-2022, 03:54 PM - Forum: Data Science - No Replies

Hi,
I am trying to create an Inverted Index, but I cant seem to get it working.
So I have read in xml files that contain ID, DESC and TEXT, and have..... More

Print this item

  How to plot confusion matrix of multiclass classification
Posted by: Vaishali - Feb-10-2022, 02:34 PM - Forum: General Coding Help - No Replies

y_pred.shape = (91,48)
y_true.shape = (91,48)

I want confusion matrix of (48X48)
When I print confusion matrix using argmax, It gives matrix of (..... More

Print this item

  try except in wmi code
Posted by: ilknurg - Feb-10-2022, 02:21 PM - Forum: General Coding Help - Replies (3)

How can i use try except in this code script?
I want to print an error message when the connection refused.
Sorry for this simple question but im a ..... More

Print this item

  UnboundLocalError: local variable 'wmi' referenced before assignment
Posted by: ilknurg - Feb-10-2022, 12:37 PM - Forum: General Coding Help - Replies (2)

I have the code below. When i run it, i get this error

UnboundLocalError: local variable 'wmi' referenced before assignment

How can i sol..... More

Print this item

  Fitting transfer function model to FRF data
Posted by: ymohammadi - Feb-10-2022, 10:02 AM - Forum: Data Science - No Replies

I'm new to python and trying to find a way to fit a transfer function to FRF data. Something similar to sys = tfest(data,np,nz) in matlab where the in..... More

Print this item

Information Estimating transfer function from frd data
Posted by: ymohammadi - Feb-10-2022, 10:00 AM - Forum: General Coding Help - No Replies

I'm new to python and trying to find a way to fit a transfer function to FRF data. Something similar to sys = tfest(data,np,nz) in ma..... More

Print this item

  Making a plot with secondary y-axis bigger
Posted by: snkm - Feb-10-2022, 09:40 AM - Forum: General Coding Help - No Replies

Hello I'm new here, I hope someone can help me :)
I'm trying to understand how to make a plot, which has a secondary axis, bigger. I tried with plt...... More

Print this item

  Reduce four for loops or parallelizing code in Python
Posted by: cee878 - Feb-10-2022, 06:14 AM - Forum: Data Science - Replies (1)

I have this code that I have been working and creating data based on my actual data. I am using pandas and Python. Here is how my code looks like:
[p..... More

Print this item

  benchmarking parts of Pyhon
Posted by: Skaperen - Feb-10-2022, 06:03 AM - Forum: News and Discussions - No Replies

searching for benchmarking of Python i find tons of tutorials (he value of which i did not determine) and many tools to benchmark a function or applic..... More

Print this item

  Best way to download the contents of a web directory.
Posted by: Pedroski55 - Feb-10-2022, 02:24 AM - Forum: General Coding Help - Replies (2)

What is the best way to download the contents of my webpage directory:

www.mywebpage.com/uploadFiles/php/uploads

The contents will be lots of se..... More

Print this item

  Help with coding/ideas
Posted by: natalie - Feb-09-2022, 11:20 PM - Forum: General Coding Help - Replies (6)

Can you help me with that please? I need to write a function max(L) which, for a given int-list L of length n≥1, returns the maximum length of an unim..... More

Print this item

  breakout clone
Posted by: flash77 - Feb-09-2022, 07:27 PM - Forum: Game Development - Replies (32)

Hi,
I'm new to python/pygame and I'm trying to program a breakout clone.
I've got an error message: self = {Paddle} Unable to get repr for <class 'p..... More

Print this item

  Append data to Yaml section
Posted by: tbaror - Feb-09-2022, 06:56 PM - Forum: General Coding Help - No Replies

Hello ,

I am trying to append in loop sub sections into a Yaml ,using Pyyaml ,the yaml is below , didn't have a success until now

The section i ..... More

Print this item

  How to bind a midi signal to tkinter?
Posted by: philipbergwerf - Feb-09-2022, 04:58 PM - Forum: General Coding Help - Replies (1)

My program renders a score. The render() function is a big heavy function. Inside a thread I run a while loop that checks if a connected midi controll..... More

Print this item

  Format SAS DATE
Posted by: Racer_x - Feb-09-2022, 04:44 PM - Forum: General Coding Help - No Replies

Having a issue locating the proper format.

[python]for k, v in ds.items():
v.label = k.title()
print(v.dtype )
..... More

Print this item

  Help with pygame but not an actual game
Posted by: lew247 - Feb-09-2022, 02:25 PM - Forum: General Coding Help - No Replies

Hi all
I'm very new to Python and programming other than in Basic many years ago
I'm trying to get an Earthquake monitor working as ..... More


Attached Files

.py   DisplayManager.py (Size: 5.25 KB / Downloads: 339)
.py   EQMap.py (Size: 3.45 KB / Downloads: 275)
Print this item

  Can I Limit Value used by python
Posted by: pajd - Feb-09-2022, 01:05 PM - Forum: General Coding Help - Replies (9)

Hello everyone
New user here and VERY new to Python so still learning a lot on it.

In my code below I use this to call an Api using 'Method' and ..... More

Print this item

  Understaning simple reading object
Posted by: korenron - Feb-09-2022, 08:30 AM - Forum: General Coding Help - Replies (3)

Hello,
I'm missing something very simple

I'm reading BLE data using https://github.com/IanHarvey/bluepy

on this part I want to know all the i..... More

Print this item

  Updating nested dict list keys
Posted by: tbaror - Feb-09-2022, 08:26 AM - Forum: General Coding Help - Replies (2)

Hello ,

I am trying to update values in in dict that construct from nested dict and list the dict as follows

[python]dict_file ={'job_name': 's..... More

Print this item

  Real time data
Posted by: satyanarayana - Feb-09-2022, 06:45 AM - Forum: General Coding Help - Replies (3)

Hi friends,

I am reading one minute tcp data and parsing and writing to database continuous data delay is happening to update how to avoid that del..... More

Print this item

  where indentation matters
Posted by: Skaperen - Feb-09-2022, 01:16 AM - Forum: Bar - Replies (6)

i was looking around at the files for my desktop settings. these are in XML format. i thought XML was free form where indentation did not matter. w..... More

Print this item

  where to host my python script
Posted by: tomtom - Feb-08-2022, 08:25 PM - Forum: General Coding Help - Replies (1)

please which hosting is best for hosting python file?

Print this item

Thumbs Up can't access data from URL in pandas/jupyter notebook
Posted by: aaanoushka - Feb-08-2022, 07:37 PM - Forum: Data Science - Replies (1)

Hi everyone

i'm new to python. I'm in training and i started using jupyter notebook on a project
I wanted to work with covid data. I took the raw..... More


Attached Files

Thumbnail(s)
           
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
Most views
  The best Prog... 580379
  Tutorial Requ... 519180
  Web Scraping ... 442772
  Newbie with P... 386955
  New Users Int... 386304
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aurelio12282025 Today
bejaminmaarleyo1374 Today
taylorlitleoz476 Today
desy845 Today
atalieyandext4063 Yesterday

User Panel Messages

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