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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,792

Full Statistics

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

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
5 hours ago
» Replies: 1
» Views: 90
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 141
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 124
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 124
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,247
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,377
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,577
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 201
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,208
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,458

 
  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

  create new log file on logging?
Posted by: korenron - Mar-21-2022, 02:37 PM - Forum: General Coding Help - Replies (6)

Hello,
I'm using logging and I have notice that the file is not clean after reboot (program start again)
what do I need to do in order to "clean" th..... More

Print this item

  How to trigger for loop after while
Posted by: quest - Mar-21-2022, 06:41 AM - Forum: General Coding Help - Replies (2)

Hello,

This is my code:
[python]
input_number=3
layer=5
paulis = list(product(['I','X','Y','Z'],repeat=input_number))
a = list(pro..... More

Print this item

  The Match
Posted by: jefsummers - Mar-21-2022, 02:49 AM - Forum: Bar - No Replies

In my line of work, residency positions (doctors) are assigned by an annual event called The Match. Students apply to programs, programs invite for in..... More

Print this item

  Pygame with OpenGL on RPI Zero without X: invalid operation
Posted by: aserranoh - Mar-20-2022, 09:49 PM - Forum: General Coding Help - No Replies

Hello everyone!

I have the following code, which I just copied from a tutorial on internet (https://www.jarutex.com/index.php/2021/10/15/7164/):
..... More

Print this item

  SyntaxError
Posted by: DaveG - Mar-20-2022, 09:43 PM - Forum: General Coding Help - Replies (4)

Hi
Would someone be able to identify my syntax error please?
[error]
print ( >> fdeg , "%.8f %.8f %.5f" % (xx[ii], yy[jj], deformation[jj, ii]..... More

Print this item

  list sort() function bring backs None
Posted by: CompleteNewb - Mar-20-2022, 08:57 PM - Forum: General Coding Help - Replies (6)

i have a program that gives back a random list of numbers which i then sort using .sort() , but then this happened:

[python]
list1 = [1,1,1,1,..... More

Print this item

  Help with kivy for a learner
Posted by: Talbot9 - Mar-20-2022, 07:25 PM - Forum: General Coding Help - Replies (2)

Hello

Please forgive my inexperience but I'm new to coding I'm trying to find a good video guide on how to create some blocks for an app I'm makin..... More

Print this item

  Unable to count the number of tries in guessing game.
Posted by: Frankduc - Mar-20-2022, 06:39 PM - Forum: General Coding Help - Replies (7)

Hello,

pyscript is crashing if count = 0 declare inside def check(guess):
otherwise i get local variable 'count' referenced before assignment

[pyth..... More

Print this item

  can Inner Class reference the Outer Class's static variable?
Posted by: raykuan - Mar-20-2022, 05:49 PM - Forum: General Coding Help - Replies (6)

In the nested class, can Inner Class reference the Outer Class's static variable?

[python]
class Outer(object):
a = 111

class Inner(ob..... More

Print this item

  PyPi Download Counts and Warehouse Migration?
Posted by: tlee0818 - Mar-20-2022, 05:35 PM - Forum: General Coding Help - Replies (1)

I did a download count analysis on PyPi's projects, and found something interesting.

https://imgur.com/a/ZUWf28B

There is a significant jump in ..... More

Print this item

  Python Project
Posted by: sprocket - Mar-20-2022, 01:18 PM - Forum: Homework - Replies (2)

My son is studying Python at school. My knowledge is very basic in Python, but I do understand programming languages and coding. Unfortunately I an un..... More

Print this item

  How can users store data temporarily in flask app?
Posted by: darktitan - Mar-20-2022, 11:59 AM - Forum: Web Scraping & Web Development - Replies (6)

Hi
Im wondering how users in my app can store data temporarily?

Right now im using lists who shows some data the user inputs. It works kind off when ..... More

Print this item

  Could you explain each part of the code?
Posted by: Tsushida - Mar-19-2022, 07:47 PM - Forum: General Coding Help - Replies (2)

Hello! Could you guys explain to me each part of this code right here:

[python]n = int(input())
alpha = 'abcdefghijklmnopqrstuvwxyz'
print(*[''.j..... More

Print this item

  [split] TypeError: 'int' object is not callable
Posted by: flash77 - Mar-19-2022, 05:06 PM - Forum: General Coding Help - Replies (4)

Dear deanhystad,

I tried to create a form in tkinter because, as you mentioned, the player shouldn't have to install some extra packages.
(I'm pla..... More

Print this item

Question Beginner Boolean question [Guessing game]
Posted by: TKB - Mar-19-2022, 01:58 PM - Forum: General Coding Help - Replies (4)

Dear all,

I recently decided to study Python (no prior experience). I took the beginner course available on Youtube: https://www.youtube.com/watch?..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 5 hours ago 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
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578718
  Tutorial Requ... 509351
  Web Scraping ... 441861
  Newbie with P... 385818
  New Users Int... 375247
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
lary_p Yesterday
Cristiano 11-08
Alfredd 11-08
clayote 11-08
yutaozhou 11-07

User Panel Messages

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