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,388
» Latest member: DTECHSYSTEM
» Forum threads: 38,820
» Forum posts: 176,018

Full Statistics

Online Users
There are currently 41 online users.
» 2 Member(s) | 33 Guest(s)
Google, Bing, AOL, Apple, AOL, eedjsa, DTECHSYSTEM

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
1 minute ago
» Replies: 9
» Views: 194
IP address for users
Forum: Networking
Last Post: itx_sumeet
10 hours ago
» Replies: 4
» Views: 7,057
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Today, 01:10 AM
» Replies: 5
» Views: 9,879
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 130
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 73
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 133
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,290
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 98
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 752
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 165

 
  PyCon 2022
Posted by: snippsat - May-24-2022, 07:48 PM - Forum: News and Discussions - No Replies

[Image: 1*mXCpIzzJNFuGZyJGf4qnSw.png]
Her is the ..... More

Print this item

  Coding and IDE
Posted by: prodrumernate - May-24-2022, 07:10 PM - Forum: General Coding Help - Replies (5)

i learn better by writing and doing than just reading.im using sololearn to learn python.i couldnt even write the code for a simple calculator..so i t..... More

Print this item

  FFT - sum of amplitudes
Posted by: frohr - May-24-2022, 05:34 PM - Forum: General Coding Help - No Replies

Hi,
I have 30k samples and I make FFT.
Size of amplitudes in FFT is ok.
But I want make sum of all amplitudes and here I can see wrong number. F..... More

Print this item

Question how to solve `'TypeError: 'int' object is not iterable`?
Posted by: netanelst - May-24-2022, 11:02 AM - Forum: General Coding Help - Replies (2)

[python]
def CSVR():


x52=[""]
x166=[""]
if request.method == 'POST':
f = request.files['file']
l8=range(48,58)
..... More

Print this item

  Python converted EXE not working
Posted by: Rajasekaran - May-24-2022, 10:06 AM - Forum: General Coding Help - Replies (1)

I have created a tool for OCR the content from the TIFF images and its working fine when executing from the source code.
However when executing the s..... More


Attached Files

.py   OCR.py (Size: 765 bytes / Downloads: 268)
Print this item

  using variables with functions imported from different files.
Posted by: Scordomaniac - May-24-2022, 09:29 AM - Forum: General Coding Help - Replies (3)

hey, I'm trying to run a function from a different file in my main file. this isn't working as the function won't load variables across files, how can..... More

Print this item

  Help with TypeWriter Effect in Python Rich
Posted by: Extra - May-23-2022, 09:43 PM - Forum: General Coding Help - No Replies

Hello,

I'm trying to have the text look like it's being typed live on the screen using the typewriter effect. I got it to print to the terminal the w..... More

Print this item

  Detecting float or int in a string
Posted by: Clunk_Head - May-23-2022, 08:39 PM - Forum: General Coding Help - Replies (15)

The str.isnumeric() function is lacking when it comes to detecting floats.
Several sites say to use a try/except to attempt the conversion. I was tau..... More

Print this item

  Python newbie
Posted by: laleebee - May-23-2022, 07:26 PM - Forum: General Coding Help - Replies (2)

Hi all.
A little bit about me: 20 years ago, I worked in house for an investment bank. Despite not having a coding background I ended up using Per..... More

Print this item

  signal anti-aliasing
Posted by: frohr - May-23-2022, 05:18 PM - Forum: General Coding Help - No Replies

Hi,
I am reading signal from ADXL1005 with ADS1256 24bit ADC to Teens4.0.
I have sample rate 30000 and I read 30000 samples.
I have no problem with..... More

Print this item

  Help adding prompt text in a Layout using Rich TUI
Posted by: Extra - May-23-2022, 04:16 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to put my Login Screen inside a Panel or Layout using Rich (Rich Link)[url=https://python-forum.io/thread-37285.html]..... More

Print this item

  [Solved]Make certain columns Un-editable in QtSql
Posted by: Extra - May-23-2022, 03:06 PM - Forum: GUI - Replies (7)

Hello again,

I'm trying to figure out how to make my SellPrice, ID, Quantity, & Date columns Un-editable/read-only when you click on their columns ..... More

Print this item

  Multiple Loop Statements in a Variable
Posted by: Dexty - May-23-2022, 08:36 AM - Forum: General Coding Help - Replies (1)

I'm quite familiar with:

for i in range(n):
	for j in range(n):
		print(i, j)
and
[python]
myVar = [i for i in range(n)]..... More

Print this item

  strategy to troubleshoot what pyinstaller misses
Posted by: hammer - May-23-2022, 01:05 AM - Forum: General Coding Help - No Replies

On linux machine, have an app that incorporates kivy and runs from command line fine. After creating a .spec file and adding some needed datas, trying..... More

Print this item

  Metaprogramming: automating conversions between types
Posted by: Gribouillis - May-22-2022, 09:41 PM - Forum: Code sharing - No Replies

I tend to use more and more unary conversions between types in my programming, so here is a small utility module that I wrote today for composing auto..... More

Print this item

  Get the attributes value with xPath
Posted by: vulturas - May-22-2022, 05:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello everyone,

I would like to get the value from the data-score attribute within the <span>-element.
[inline]<span class="index..... More

Print this item

  math.log versus math.log10
Posted by: stevendaprano - May-22-2022, 11:44 AM - Forum: General Coding Help - Replies (10)

math.log(num, 10) is usually, but not always, equal to math.log10(num). In my random testing, when they are differen..... More

Print this item

  How to compile a Python script for a Windows / Linux executable?
Posted by: netanelst - May-22-2022, 10:11 AM - Forum: General Coding Help - Replies (2)

TNX Smile
NATE

Print this item

  Loop row and column + 1
Posted by: Scott - May-22-2022, 07:34 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

I've made an empty 24,31 (24 columns and 31 rows if I've done the numbers wrong) matrix with all 0. I've also created a loop that a mo..... More

Print this item

  is there any tool to convert negative base to int?
Posted by: Skaperen - May-21-2022, 10:48 PM - Forum: General Coding Help - Replies (7)

is there any tool to convert negative base to int?

Print this item

  only print the last folder ?
Posted by: User3000 - May-21-2022, 09:01 PM - Forum: General Coding Help - Replies (4)

hi, I know I can get the name of the last folder using os.path.basename and os.path.normpath.

src_1 = "/storage/emulated/0/Documents/TAX/December_..... More

Print this item

  [Solved]Multiply a number to a DoubleSpinBox
Posted by: Extra - May-21-2022, 08:09 PM - Forum: GUI - Replies (11)

Hello,

I'm trying to make a sellPrice variable that takes in the user's input from the Price Input that I have and multiplies 1.10 to it.

This ..... More

Print this item

  [CPython] Can't run script python
Posted by: VietVH - May-21-2022, 03:32 PM - Forum: General Coding Help - Replies (2)

Hi all,

I have a problem need your help.
Thanks in advance.

1. Context:
I customized source code CPython 3.9.6 (https://www.python.org/downloa..... More

Print this item

  Convert nested sample json api data into csv in python
Posted by: shantanu97 - May-20-2022, 10:47 PM - Forum: General Coding Help - Replies (3)

Want to convert Sample JSON data into CSV file using python. I am retrieving JSON data from API. As my JSON has nested objects, so it normally cannot ..... More

Print this item

  rotating image with Tkinter
Posted by: Frankduc - May-20-2022, 05:37 PM - Forum: General Coding Help - Replies (6)

Hi,

I am trying to rotate images on canvas using Tkinter after() method.

My images dont appear in the window and they dont seem to rotate. I get..... More

Print this item

  Best way to accommodate unknown number of variables?
Posted by: Mark17 - May-20-2022, 05:23 PM - Forum: General Coding Help - Replies (9)

Hi all,

I've run up against this issue a number of times so I thought I'd seek advice on the best way to handle it.

Suppose I have a large data ..... More

Print this item

  Should Python support i suffix for complex numbers as well as j ?
Posted by: stevendaprano - May-20-2022, 10:19 AM - Forum: News and Discussions - Replies (3)

Python supports complex numbers written with the j suffix, e.g. 2.5j.

On Python's bug tracker, ..... More

Print this item

  Kiosk app
Posted by: DPaul - May-20-2022, 06:01 AM - Forum: Bar - No Replies

Hi,
When animals could talk, 'kiosk applications' were also in vogue.
If I have a tKinter app, running on windows 10/11.
What are the best python t..... More

Print this item

  Aligning a image to a template image
Posted by: robrod26 - May-20-2022, 02:02 AM - Forum: Data Science - Replies (1)

I've been researching how to do this with no luck.

I would like to align image 1 to image 2.

Image 1
https://ibb.co/wCsjYZR

Image 2
https:/..... More

Print this item

  auth - URL
Posted by: SUN - May-19-2022, 02:23 PM - Forum: General Coding Help - Replies (2)

Hello everyone sorry to disturb you. I wanna to ask a question about the authentification with an URL. How to judge whether a group of id and password..... More


Attached Files

Thumbnail(s)
       
Print this item

  Converting cells in excel to JSON format
Posted by: desmondtay - May-19-2022, 10:10 AM - Forum: General Coding Help - Replies (4)

Hi,

I am new to Python, need some help from the experts. I need to convert certain cells in 2 worksheets in excel to JSON format. How can i do it u..... More

Print this item

  do you have an idea to optimize this code[recursion]]?
Posted by: netanelst - May-19-2022, 08:37 AM - Forum: General Coding Help - Replies (4)

[python]class y():


def __init__(self, id, d="", indicator="",type="",deleted=False,published_date=0,last_updated=0,reports=[],actors=[],..... More

Print this item

  do you have an idea for optimizing this code?
Posted by: netanelst - May-19-2022, 07:12 AM - Forum: General Coding Help - Replies (3)

[python]
ip=0
import html
from imp import C_EXTENSION
import pandas as pd
from werkzeug import utils
from asyncio import get_running_loop
from..... More

Print this item

Bug do you have an idea to optimize this code[recursion]]?
Posted by: netanelst - May-19-2022, 06:50 AM - Forum: Code Review - No Replies

thanks
netanel

[python]class l():
def __init__(self,name,created_on,last_valid_on):
self.name=name
self.created_on=created_..... More

Print this item

  I am trying to run pytest and getting error that doesn't show up when running pytest.
Posted by: uobouhb - May-19-2022, 03:01 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

This is in python flask.

I am getting an error in pytest. When I run pytest it says it is working but I get the output below
[output]app\t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 1 minute ago eedjsa eedjsa General Codin...
  IP address for users 10 hours ago Robots itx_sumeet Networking
  Lottery generator (beginn... Today, 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
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
Most views
  The best Prog... 580344
  Tutorial Requ... 518938
  Web Scraping ... 442764
  Newbie with P... 386945
  New Users Int... 386125
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
DTECHSYSTEM Today
zashleyfracesz3221 Today
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday

User Panel Messages

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