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,391
» Latest member: aylalittle1159
» Forum threads: 38,822
» Forum posts: 176,019

Full Statistics

Online Users
There are currently 50 online users.
» 2 Member(s) | 45 Guest(s)
Google, Bing, AOL, aylalittle1159, desy845

Latest Threads
When Did The Iphone 17 Pr...
Forum: General Coding Help
Last Post: aylalittle1159
4 minutes ago
» Replies: 0
» Views: 7
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 59
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 230
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,066
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,892
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 137
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 82
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 147
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,295
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 107

 
  Results name is a variable itself
Posted by: paul18fr - Mar-25-2022, 08:32 AM - Forum: General Coding Help - Replies (2)

Hi
I do not remember how to proceed for the following assignment without using (hugly) local, global, and so on; the name if the functi..... More

Print this item

  MS access db
Posted by: DPaul - Mar-25-2022, 07:42 AM - Forum: General Coding Help - Replies (6)

Hi,
This question has been asked a 1000 times over the years in various forums.
I had hoped that with python 3.10 things would be smoother. I still ..... More

Print this item

  Change the key value in dictionary
Posted by: quest - Mar-25-2022, 01:42 AM - Forum: General Coding Help - Replies (3)

Hello

I have this dictionary:
[python]
{('i', 'i'): (0.4958635668040591+0.033985852749267645j),
('i', 'x'): (-3.713537562982453e-06-2.578284945..... More

Print this item

  Zero Division Error
Posted by: Leo - Mar-24-2022, 11:48 PM - Forum: Homework - Replies (2)

Hello everyone
This goal of this assignment is to use a separate text file and then use the numbers within it and compute the variance. My professor ..... More

Print this item

  [solved] How to display a pdf-file in a PyQt6 widget
Posted by: BigMan - Mar-24-2022, 10:38 PM - Forum: GUI - Replies (13)

Hello,

The problem
I would like to display a pdf-file in a widget. That widget is part of a layout. Since the pdf files can contain more th..... More

Print this item

  how to make a rectangle
Posted by: shanesgameYT - Mar-24-2022, 10:35 PM - Forum: News and Discussions - No Replies

[b]im trying to make a rectangle on my screen and the rectangle shows up but for a split second after i click the close button this is my code in the ..... More


Attached Files

.py   main.py (Size: 570 bytes / Downloads: 281)
.py   tiles.py (Size: 236 bytes / Downloads: 294)
Print this item

  DELETE Post using Python FaceBook Graph API
Posted by: BIG_PESH - Mar-24-2022, 08:28 PM - Forum: General Coding Help - No Replies

Hey All,

I'm currently programming a Facebook auto poster using the FaceBook Graph API (Facebook-SDK 3.1.0)with Python 3.10.

I have it posting a..... More

Print this item

  unique on 2 columns at the same time
Posted by: paul18fr - Mar-24-2022, 07:40 PM - Forum: Data Science - Replies (2)

Hi,

I'm looking for a way to get unique couple of data on 2 columns here as shown bellow; I had to look to numpy and Pandas, duf on i..... More

Print this item

  Unpacking zip object
Posted by: Mark17 - Mar-24-2022, 06:52 PM - Forum: General Coding Help - Replies (12)

Here's some code:

[Python]
exceptions = 0

a = ['1-6-2017', '1-13-2017', '1-20-2017', '1-27-2017']
b = [265, -10, 130, 330]
c = ['d', '', 'd',..... More

Print this item

  How to speed up nested cycles?
Posted by: alexfrol86 - Mar-24-2022, 06:50 PM - Forum: General Coding Help - Replies (3)

I try to optimize and speed up the code. With numba, it started to work much better, but still takes hours because of a lot of data that should be ite..... More

Print this item

  extracting a function/class/method from code
Posted by: Skaperen - Mar-24-2022, 05:34 PM - Forum: News and Discussions - Replies (5)

i'm not sure how to look for this. i would like a tool that can be given a file (or stdin) with code and the name of a function or class or method wh..... More

Print this item

  Loop through a list of string
Posted by: oldtrafford - Mar-24-2022, 02:48 PM - Forum: General Coding Help - Replies (4)

Hello,
I would like to write the following code,

[python]caeXmlObjects.kernel.mainXML.saveXMLRecords(fileName='settings.xml',
className='cae..... More

Print this item

  Python Encapsulation
Posted by: codinglearner - Mar-24-2022, 12:47 PM - Forum: General Coding Help - Replies (2)

Hi,

Was reading some articles and got this code in the multi-choice option, wanted to know what would be the put of this code?

[code]
class Ba..... More

Print this item

Question How to understand the received bytes of ser.read?
Posted by: pf2022 - Mar-24-2022, 10:51 AM - Forum: General Coding Help - Replies (3)

Hello,

I'm using a function ser.read (from PySerial) to read a sequence of 2000 bytes from a microcontroller. Two received bytes in a sequence are a..... More


Attached Files

Thumbnail(s)
   
Print this item

  background music in the gameloop
Posted by: flash77 - Mar-24-2022, 10:35 AM - Forum: Game Development - Replies (6)

Dear community,

I've got a problem with game development/tkinter...

I generated a form which let the user choose some tracks.
These tracks shou..... More

Print this item

  Deployed Spider on Heroku: How do I email downloaded files?
Posted by: JaneTan - Mar-24-2022, 06:19 AM - Forum: Web Scraping & Web Development - Replies (2)

I am new to web-scraping and deployment of spiders.

1) Basically, I am in the midst of creating a spider to scrape some items and download Exce..... More

Print this item

  Need to fix SyntaxError in cycle try
Posted by: alexfrol86 - Mar-24-2022, 05:21 AM - Forum: General Coding Help - Replies (14)

Hi!
In this block, I need to try all combinations of variables in the ht expression and save only those combinations that ensure the equality of the ..... More

Print this item

  How to split file by same values from column from imported CSV file?
Posted by: Paqqno - Mar-23-2022, 05:33 PM - Forum: General Coding Help - Replies (5)

I am really new into Python and I struggle with this problem. I have data like this in CSV file:

111_0,3005,QWE
111_0,3006,SDE
111_0,3006,LFR
11..... More

Print this item

Question code visualizer that supports pandas
Posted by: rootsmusic - Mar-23-2022, 04:19 PM - Forum: Data Science - Replies (6)

I'm learning pandas, and I need to read .csv data. Is there any code visualizer that supports pandas? Thanks.

Print this item

  nvm
Posted by: Wmivey - Mar-23-2022, 02:15 PM - Forum: General Coding Help - No Replies

Nevermind, I found my issue with my logic.

Print this item

  How to rotate bits ?
Posted by: korenron - Mar-23-2022, 01:36 PM - Forum: General Coding Help - Replies (2)

Hello,
I have a function that take bits and cut them according to my needs
[python]
BITS_ORDER_CHANGE = {8: 0, 7: 1, 6: 2, 5: 3, 4: 4, 3: 5, 2: 6, ..... More

Print this item

  Am I dumb?
Posted by: aidh18 - Mar-22-2022, 09:51 PM - Forum: General Coding Help - Replies (2)

I am relatively new to python, and I thought I understood the basics of it already, but for some reason, this one block of code is giving me so many p..... More

Print this item

  Function combining file manipulation and loop
Posted by: Leyo - Mar-22-2022, 08:50 PM - Forum: Homework - Replies (5)

good evening,
could I ask for some help with this assignment?

[quote]We want to save a list of words in a file so that we can reuse it later.

D..... More

Print this item

  Dunder Methods
Posted by: menator01 - Mar-22-2022, 07:03 PM - Forum: General Coding Help - Replies (8)

I'm trying to get a basic understanding of dunder methods. Using the example below. How do I return the msg?
I'm thinking it just doesn't automatical..... More

Print this item

  x-axis labels with Matplotlib
Posted by: Mark17 - Mar-22-2022, 06:26 PM - Forum: General Coding Help - Replies (8)

Hopefully this isn't too hard to follow.

Fri_2017 is a list of the first 20 Fridays in 2017 as type datetime.datetime .

I also have this:

[Py..... More

Print this item

  Can ZipFile be used to extract hidden files?
Posted by: AiedailEclipsed - Mar-22-2022, 05:21 PM - Forum: General Coding Help - No Replies

I asked this question over on StackOverflo[url=https://python-forum.io/thread-36720.html]..... More

Print this item

  Creating/Moving file
Posted by: DeadlyKnight - Mar-22-2022, 03:39 PM - Forum: Homework - Replies (3)

Hey guys!

I would like a bit of help please.

In short, I'd like
-User input, naming a file
-Automatically add the .txt extension
-If the fi..... More

Print this item

  Jupyter:On my computer, where csv file is?
Posted by: Leloup - Mar-22-2022, 10:47 AM - Forum: Data Science - Replies (2)

Bonjour,

I have been using Jupyter for a month. To train myself with the pandas libraries, I used the Santé France website to get a dataset as a cs..... More

Print this item

  selenium returns junk instead of html
Posted by: klaarnou - Mar-22-2022, 10:41 AM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

I am trying to scrape a dynamic website with selenium.
HTML is rendered in the <app-root></app-root> tag.
If I inspect the website in chro..... More


Attached Files

Thumbnail(s)
       
Print this item

  BTC Pricce and PyQt5
Posted by: BlindMate - Mar-22-2022, 10:04 AM - Forum: GUI - No Replies

Hello,

I am a beginner in Python and I ran into some issues.

I want to creaate an App that shows me the real time Bitcoin proce.
I managed to g..... More

Print this item

  can not install pymesh in ubuntu
Posted by: jerry - Mar-22-2022, 09:53 AM - Forum: General Coding Help - Replies (2)

Hello everyone, when I input “cmake ..” in build, the following error appears, I do not know how to solve the following problem, thank you!
-- Could ..... More

Print this item

Question Error with MatPlotLib subplots
Posted by: Danno - Mar-22-2022, 04:15 AM - Forum: General Coding Help - Replies (8)

Hi.

I've been trying to create subplots with MatPlotLib, FinPlot, Ta-Lib, and Seaborn. Constant errors. I've tried Python V 3.9.x and 3.10.x us..... More

Print this item

  make eval() safe
Posted by: Skaperen - Mar-22-2022, 02:43 AM - Forum: News and Discussions - Replies (5)

is there a way to easily make eval() safe to use with a string from an untrusted source?

Print this item

  Tkinter number guessing game
Posted by: menator01 - Mar-21-2022, 07:35 PM - Forum: Code sharing - Replies (2)

Another number guessing game

[python]import tkinter as tk
from random import randint

'''
Define some global variables
start is the low number..... More

Print this item

  requests-html + Beautifulsoup
Posted by: klaarnou - Mar-21-2022, 05:31 PM - Forum: Web Scraping & Web Development - No Replies

Hello,

I am trying to scrape a dynamic web page. The code I use is:

[python]
from requests_html import HTMLSession
from bs4 import BeautifulSo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  When Did The Iphone 17 Pr... 4 minutes ago aylalittle1159 aylalittle1159 General Codin...
  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...
Most views
  The best Prog... 580363
  Tutorial Requ... 519089
  Web Scraping ... 442771
  Newbie with P... 386954
  New Users Int... 386268
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
aylalittle1159 Today
desy845 Today
atalieyandext4063 Yesterday
finallen321 Yesterday
DTECHSYSTEM Yesterday

User Panel Messages

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