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,242
» Latest member: johnsonlucas83
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

Online Users
There are currently 38 online users.
» 0 Member(s) | 34 Guest(s)
Applebot, Google, Bing

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
8 hours ago
» Replies: 1
» Views: 49
Data Science
Forum: Data Science
Last Post: mamta25
8 hours ago
» Replies: 3
» Views: 2,577
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
Yesterday, 10:15 PM
» Replies: 1
» Views: 104
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 152
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 136
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 133
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,357
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,383
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,584
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 212

 
  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: 335)
.py   EQMap.py (Size: 3.45 KB / Downloads: 271)
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

  Needing to Check Every Quarter Hour
Posted by: bill_z - Feb-08-2022, 04:30 PM - Forum: General Coding Help - Replies (10)

New guy here still struggling with time issues.

I'm trying to write a python3 program for my Raspberry PI 3 model B+ that will turn on a LED light ..... More

Print this item

  Loop
Posted by: oldtrafford - Feb-08-2022, 09:21 AM - Forum: General Coding Help - Replies (2)

Hello,
I'm trying to create a code for postprocessing some FEA results by using a Python script associated with Abaqus scripting.
my current code is..... More

Print this item

  Moving directories by filetype
Posted by: millpond - Feb-08-2022, 06:50 AM - Forum: Homework - Replies (3)

Not homework, but a very elementary script, that has a seemingly complex problem.

It mostly works. It is used to move directories based on the file..... More

Print this item

  Mysql error message: Lost connection to MySQL server during query
Posted by: tomtom - Feb-08-2022, 06:15 AM - Forum: General Coding Help - Replies (6)

I want to connect to a database in a remote server (namecheap Cpanel)
Os: wisdows 11

Here's my code:[python]
def connect_to_db(): # function conn..... More

Print this item

  I tried to solve basic reaction kinetics ode but i cant run the simulation. Plz help
Posted by: Vengdasan - Feb-08-2022, 01:16 AM - Forum: General Coding Help - Replies (1)

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

def rxn(Z, t):
k1 = 1
k2 = 1.5

..... More

Print this item

  For loop index out of bounds
Posted by: armitron121 - Feb-07-2022, 11:18 PM - Forum: General Coding Help - Replies (2)

Hello,

I am iterating a for loop a data frame by assigning the length of the df to a variable, and iterating the for loop across the range of that ..... More

Print this item

Question Python Obstacles | Jeet-Kune-Do | BS4 (Tags > MariaDB) [URL/Local HTML]
Posted by: BrandonKastning - Feb-07-2022, 09:53 PM - Forum: Web Scraping & Web Development - No Replies

Python Obstacles | Jeet-Kune-Do | BS4 (Tags > MariaDB) [URL/Local HTML]

I am working on solving my Thread: "..... More

Print this item

  List Iteration Help
Posted by: javeeva - Feb-07-2022, 07:52 PM - Forum: General Coding Help - Replies (2)

I've got a list [my_list] that contains a variable part of a web address I want to access. The web address outputs a result that I want to grab with ...... More

Print this item

  Asyncio: Queue consumer gets out of while loop without break. Where exactly and how?
Posted by: saavedra29 - Feb-07-2022, 06:23 PM - Forum: General Coding Help - Replies (2)

I have the following code:
[code]import asyncio

PARALLEL_DOWNLOADS = 4
names = ['Aris', 'Kostas', 'Nikos', 'Makis', 'Christos', 'Andreas', 'Vasil..... More

Print this item

  Subclass initialized property used in parent class method. Is it bad coding practice?
Posted by: saavedra29 - Feb-07-2022, 04:13 PM - Forum: General Coding Help - Replies (5)

Hello, i have the following code:
[code]class ParentClass:
def use_name(self):
print('Using {} somehow'.format(self.name))


class C..... More

Print this item

  Newbie first problem
Posted by: cima_hurdle - Feb-07-2022, 04:02 PM - Forum: General Coding Help - Replies (8)

Hi there.

I've just started my first book for Python "Python Crash Course" and I faced my first problem.
I believe I installed Python correctly ve..... More

Print this item

  Cant transfer a variable onto another function
Posted by: KEIKAS - Feb-07-2022, 03:24 PM - Forum: General Coding Help - Replies (5)

The error is in line 17

[python]import tkinter as tk
from tkinter.ttk import *
window = tk.Tk()

def Adder():
AddingWindow = tk.Toplevel(w..... More

Print this item

  vtk reader
Posted by: paul18fr - Feb-07-2022, 02:52 PM - Forum: Data Science - Replies (1)

Hi

Does somebody know where can I find informations on how to read a compressed vtk byte file (with vtkZLibDataCompressor I guess)? I'm digging for..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 8 hours ago Reema Gribouillis General Codin...
  Data Science 8 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... Yesterday, 22:15 tsgiannis woooee GUI
  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... 578735
  Tutorial Requ... 509434
  Web Scraping ... 441870
  Newbie with P... 385832
  New Users Int... 375357
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 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today

User Panel Messages

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