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,260
» Latest member: nathanael
» Forum threads: 38,785
» Forum posts: 175,842

Full Statistics

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

Latest Threads
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: Skaperen
26 minutes ago
» Replies: 4
» Views: 274
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
1 hour ago
» Replies: 0
» Views: 15
How to make ball stay wit...
Forum: General Coding Help
Last Post: nathanael
2 hours ago
» Replies: 0
» Views: 20
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
5 hours ago
» Replies: 0
» Views: 43
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 10
» Views: 217
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
9 hours ago
» Replies: 3
» Views: 112
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 196
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 382
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 127
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 264

 
  python delay without interrupt the whole code
Posted by: Nick_tkinter - Feb-18-2021, 06:00 PM - Forum: General Coding Help - Replies (4)

Hello.I have the following function:
[python]from threading import Timer
a = 0
def TaskManager():
global a
t = Timer( 1, TaskManager )
..... More

Print this item

Exclamation binwalk Win32 compile
Posted by: hackstunt - Feb-18-2021, 05:17 PM - Forum: General Coding Help - Replies (2)

hi! Cool

i'm currently in a particular situation where cannot use python directly on Windows (but only on Android 9.0 Pie ARMv8 [Motorola E6 Pl..... More

Print this item

  DJANGO Looping Through Context Variable with specific data
Posted by: Taz - Feb-18-2021, 03:52 PM - Forum: Web Scraping & Web Development - No Replies

Hey there everybody! I am trying to return the number of threads and posts that belong to that specific forum. The structure is like this: Category ->..... More

Print this item

  matplotlib x-axis wrong order
Posted by: SchroedingersLion - Feb-18-2021, 03:50 PM - Forum: General Coding Help - Replies (4)

Greetings!

I would like to create a simple 2D plot of 270 data points.
[python]
batchnrs = list(range(0,135))*2
plt.plot(batchnrs, loss_per_batch, l..... More

Print this item

  How to get registeration data from a website that uses .aspx? Help me brothers.
Posted by: humble_coder - Feb-18-2021, 03:37 PM - Forum: Web Scraping & Web Development - Replies (1)

The website I am trying to get data from is https://indiapostgdsonline.in/gdsonlinec...orgot.aspx

Help me brothers if you can, thanks in adva..... More

Print this item

  Web Scraping
Posted by: ti82 - Feb-18-2021, 03:03 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi folks,

This is my first time posting so apologies if there is any errors. I currently have a file with a list of URLs, and I am trying to create..... More

Print this item

  How to keep the process alive?
Posted by: maiya - Feb-18-2021, 02:57 PM - Forum: General Coding Help - Replies (2)

Hi All,

I wanted to keep the process alive while opening a process using subprocess and keep firing the commands and read its output throughout the..... More

Print this item

  NameError. Please Help
Posted by: yusifahmadov - Feb-18-2021, 01:40 PM - Forum: General Coding Help - Replies (1)

[python]

import sqlite3
con=sqlite3.connect("contactbook.db")
cursor=con.cursor()

def add_contact(group,first_name,last_name,title,mobile):
..... More

Print this item

  Conditional RegEx
Posted by: pprod - Feb-18-2021, 01:14 PM - Forum: General Coding Help - Replies (2)

Hi,
I'd like the RegExs below to output 'NULL' when they don't find a match but I haven't figured out how to do this. I'd like to do this so that whe..... More

Print this item

  BST insert using recursive
Posted by: hichipi12 - Feb-18-2021, 12:55 PM - Forum: General Coding Help - Replies (5)

I am working on implementing an insert function in BST. When I print out the bst out, there are two true and two false. It supposed to be all true. I ..... More

Print this item

  Flying a Tello Drone via Node-Red Dashboard
Posted by: G_rizzle - Feb-18-2021, 11:32 AM - Forum: GUI - Replies (1)

hello,

as a university project I am thinking about buying a Tello Drone and flying it via a Node-Red Dashboard. I have already found a module in th..... More

Print this item

Star Convert Bytearray into List using list()
Posted by: Shlok - Feb-18-2021, 09:10 AM - Forum: General Coding Help - Replies (2)

Following is code for creating list from bytearray with proper indexing using list:
P.S.: Code can be small but I have [b]inserted debug stat..... More

Print this item

  Python Matplotlib: Create chart for every 4 columns in Excel file
Posted by: JaneTan - Feb-18-2021, 04:01 AM - Forum: General Coding Help - Replies (2)

Hi

I want to loop through every 4 columns in an Excel file and create line charts in a pdf file.

There is no upload function for me to show my E..... More

Print this item

  issue with Tabula-py, pyinstaller and java
Posted by: maurom82 - Feb-17-2021, 10:16 PM - Forum: General Coding Help - Replies (2)

Hi guys,
I hope someone can help me.
I wrote a code that reads a pdf page after page, with a cycle, by using tabula-py.
Code works properly, and al..... More

Print this item

  Killer features/libraries of various languages
Posted by: nilamo - Feb-17-2021, 10:08 PM - Forum: Bar - Replies (8)

What's a strong reason to use a particular language? For python, there's a strong argument for ML (pyTorch, TensorFlow, etc), or scipy/numpy. Either..... More

Print this item

  Hosmer-Lemeshow test in logistic regression
Posted by: Ninax - Feb-17-2021, 08:48 PM - Forum: Data Science - Replies (1)

Hello all,

I would like to apply the Hosmer-Lemeshow test to a logistic regression model.
However, I am a complete Phython newbie. Apparently ther..... More

Print this item

  Sorting problem
Posted by: deanhystad - Feb-17-2021, 08:05 PM - Forum: General Coding Help - Replies (2)

I am trying to sort by dependency. I get the feeling this is a solved problem, so before digging in I thought I'd ask here if anyone can point me at ..... More

Print this item

  reading a csv file
Posted by: Led_Zeppelin - Feb-17-2021, 05:59 PM - Forum: General Coding Help - Replies (3)

[code]
import csv
import pickle
import logging
import numpy as np
from sklearn.svm import SVR

logging.basicConfig(level=logging.INFO)
logger ..... More

Print this item

Shocked An array "mystery": The same array, the same operations but different outcomes
Posted by: mewss - Feb-17-2021, 05:30 PM - Forum: General Coding Help - Replies (3)

I wrote the following code, where two identical arrays h and h1 are defined in different ways.
Then I produce the same operations on them and print th..... More

Print this item

  Can you give me some advices to create a Web GUI for Python?
Posted by: TurboC - Feb-17-2021, 04:25 PM - Forum: News and Discussions - Replies (3)

I don't know how can I explain, except Python I don't know other programming languages, but just to give you an idea, I want to create a web GUI, and ..... More

Print this item

  PyInstaller Executable Does Nothing
Posted by: pdihawk - Feb-17-2021, 03:48 PM - Forum: General Coding Help - Replies (18)

I have read through and tried a bunch of different How-tos on using PyInstaller to turn my python script into an executable but everything I have trie..... More

Print this item

  Gaussian Curve Fit using Scipy ODR
Posted by: 83dons - Feb-17-2021, 12:03 PM - Forum: Data Science - Replies (1)

I am trying to plot a simple curve in Python using matplotlib with a Gaussian fit which has both x and y errors. The best fit curve should take into a..... More

Print this item

  problems to install PYZO
Posted by: chris1 - Feb-17-2021, 11:32 AM - Forum: News and Discussions - Replies (6)

Hello
I use Python 3.9 on Windows 10 with IDLE without any problem.
I would like to test PYZO and I installed it in the same directory as Python...... More

Print this item

  For loops & DataFrames
Posted by: pprod - Feb-17-2021, 10:54 AM - Forum: General Coding Help - Replies (5)

I'm running RegExs on a 13-page PDF file in a Jyputer notebook and I want to display the result in a DataFrame. However, when I execute the code below..... More

Print this item

  Pygame attribute error
Posted by: djwilson0495 - Feb-17-2021, 10:02 AM - Forum: Game Development - Replies (3)

I'm trying to get a pygame window with a grid of stars. Here's my code:

[python]
import sys

import pygame # contains functionality to make a ..... More

Print this item

  KafkaUtils module not found on spark 3 pyspark
Posted by: aupres - Feb-17-2021, 07:09 AM - Forum: General Coding Help - Replies (2)

I use hadoop 3.3.0 and spark 3.0.1-bin-hadoop3.2. And my python ide is eclipse version 2020-12. I try to develop python application with KafkaUtils py..... More

Print this item

  Unable to execute input().
Posted by: jahuja73 - Feb-17-2021, 07:01 AM - Forum: General Coding Help - Replies (5)

Unable to run the below code.

[python]
# your code goes here
def get_input():
my_var = str(input('Enter "a" or "b": '))
if my_var == "a..... More

Print this item

  Seemingly unstable GPIO output while executing from RetroPie
Posted by: LouF - Feb-17-2021, 06:26 AM - Forum: General Coding Help - Replies (6)

I have Python code on a Raspberry Pi running RetroPie. It instructs a GPIO pin to supply a MOSFET transistor with a signal to turn on/off LED lights...... More

Print this item

  schemes to stop my script
Posted by: Skaperen - Feb-17-2021, 05:43 AM - Forum: News and Discussions - Replies (4)

i wrote a script to run ffmpeg to convert mp4 files to webm format to use less space on my my video disk and its two backups. webm uses vp9 which mak..... More

Print this item

  Adding a list to Python Emailing Script
Posted by: Cknutson575 - Feb-17-2021, 03:52 AM - Forum: General Coding Help - Replies (4)

Hi,

I'm having a bit of trouble getting information into an automatic email that I'm having python send for me.

To start I have selenium webscra..... More

Print this item

  Need to identify only files created today.
Posted by: tester_V - Feb-17-2021, 01:16 AM - Forum: General Coding Help - Replies (5)

Hi,
I need to copy a file if it was accessed/created today.
I could make a batch file for that but I want to use Python.
It is probably a combinati..... More

Print this item

  I am having trouble understanding homework.
Posted by: theyhateadam - Feb-17-2021, 01:09 AM - Forum: Homework - Replies (6)

Hello, I am currently stuck on a homework lab for zybooks and I am clueless as to what I am supposed to add to my code to make it work.
[u]Prompt:[/u..... More

Print this item

  passing an expression
Posted by: Skaperen - Feb-16-2021, 10:35 PM - Forum: News and Discussions - Replies (10)

i can code the expression in a string and pass that string to my function with evaluates it with eval() in the context it needs to do (perhaps by rais..... More

Print this item

  while movinig an object how do i keep it inbounds
Posted by: gr3yali3n - Feb-16-2021, 09:00 PM - Forum: GUI - Replies (7)

a few days ago i asked python fourms about appending to a list with this same object one person added a portion where the ship would stay in bounds , ..... More

Print this item

  Rename Multiple files in directory to remove special characters
Posted by: nyawadasi - Feb-16-2021, 05:18 PM - Forum: General Coding Help - Replies (9)

The purpose of the script below is to rename multiple folders in a directory. File is named 2324[folder 1], 3242343[Folder 2), 4343[folder 3]. The pur..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  sorting a lisr of file pa... 26 minutes ago Skaperen Skaperen News and Disc...
  conditional nested loops 1 hour ago Skaperen Skaperen News and Disc...
  How to make ball stay wit... 2 hours ago nathanael nathanael General Codin...
  PyQt6 QWidgets and system... 5 hours ago stevecoh1 stevecoh1 GUI
  [solved] re.split issue 6 hours ago paul18fr deanhystad General Codin...
  Please guide me to comple... 9 hours ago pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
Most views
  The best Prog... 578970
  Tutorial Requ... 510463
  Web Scraping ... 441986
  Newbie with P... 386007
  New Users Int... 377043
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday
Bamboo Yesterday
TomTMH 11-13

User Panel Messages

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