Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,935
» Latest member: Baran12332
» Forum threads: 38,722
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 54 online users.
» 0 Member(s) | 49 Guest(s)
Applebot, Bing, AOL

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: buran
2 hours ago
» Replies: 1
» Views: 95
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
5 hours ago
» Replies: 1
» Views: 3,263
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
7 hours ago
» Replies: 4
» Views: 528
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Sep-17-2025, 05:56 PM
» Replies: 9
» Views: 3,557
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 1,961
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 885
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,120
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,153
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,232
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 796

 
  Why does 'nothing' count as a string?
Posted by: BashBedlam - Nov-09-2021, 04:21 PM - Forum: General Coding Help - Replies (3)

[python]allowable_letters = 'abcdefg'
while True :
test_string = input ('\nEnter a letter or number :')
if test_string in allowable_letters..... More

Print this item

  Hello, Introduce my GUI Tool software - tkinterdesigner.
Posted by: honghaier_2022 - Nov-09-2021, 05:24 AM - Forum: GUI - No Replies

Hello,all teachers:
I am a programmer from china. I have develped a tool software for tkinter develper.it can help us to designer gui by drag and dro..... More

Print this item

  why is range() int only
Posted by: Skaperen - Nov-09-2021, 04:20 AM - Forum: News and Discussions - Replies (3)

why is range() int only? why did they not allow it to work with float and decimal ... at least with all args the same type?

Print this item

  sudo
Posted by: RyAn - Nov-09-2021, 03:09 AM - Forum: General Coding Help - Replies (2)

Hi,
I am new to this forum so I don't actually know that do people help with the terminal of the Raspberry Pi so if they don't than I shall ask on ..... More

Print this item

  Type error:takes 1 positional argument but 2 required
Posted by: hammer - Nov-08-2021, 11:30 PM - Forum: GUI - Replies (3)

From what i found online, below error should be satisfied if the called method has self included as an argument. To me it appears i have that part sat..... More

Print this item

  recursion used to convert string into sum
Posted by: fred1232 - Nov-08-2021, 10:33 PM - Forum: Code Review - No Replies

Recursive Python

I am trying to learn recursive programming in Python by reading a GitHub document titled “Understanding Recursion Using Python ” s..... More

Print this item

  what is wrong with my code?
Posted by: greenpine - Nov-08-2021, 10:01 PM - Forum: Web Scraping & Web Development - No Replies

Hello;
I am learning python and tried the following code which is posted ..... More

Print this item

  Convert string to path using Python 2.7
Posted by: tester_V - Nov-08-2021, 09:07 PM - Forum: General Coding Help - Replies (10)

Greetings!
I need to find yesterday's modified directories.

but a PC I'm running the code on has Python 2.7 and I cannot use pathlib...
The code..... More

Print this item

  List of dataframe values beginning with x,y or z
Posted by: glidecode - Nov-08-2021, 08:30 PM - Forum: General Coding Help - Replies (3)

I have found a way to return all rows of a specified column in a data frame beginning with letter x.
The following will return a new dataframe reduce..... More

Print this item

  Import a module for use in type hint?
Posted by: Milosz - Nov-08-2021, 06:49 PM - Forum: General Coding Help - No Replies

Hello!
I have my own class called ShareData which consist all game settings, images, sounds etc. I pass one instance of ShareData as an __init__ argu..... More

Print this item

  Parsing bs4 Resultset
Posted by: gw1500se - Nov-08-2021, 04:21 PM - Forum: Web Scraping & Web Development - Replies (4)

I'm having trouble understanding the intricacies of BeautifulSoup. I did a find for a specific 'select' tag using 'find(id=...)'. The returned results..... More

Print this item

  How to make scraper send email notification just once
Posted by: themech25 - Nov-08-2021, 01:51 PM - Forum: General Coding Help - No Replies

Hi, I've created a simple python scraper with beautifulsoup that checks a site every 5 minutes to see if it contains the word 'dog'. If the word is pr..... More

Print this item

  Plot 3 variables
Posted by: Menthix - Nov-08-2021, 01:50 PM - Forum: General Coding Help - Replies (3)

Hello,
I would like to make a plot according to 3 variables. I have a database that includes several theatrical performances at the Comédie-Français...... More


Attached Files

Thumbnail(s)
       
Print this item

  Python Docx
Posted by: murtuza - Nov-08-2021, 11:43 AM - Forum: Data Science - No Replies

HI this is Murtuza
I am generating a docx file using python docx library
here i want to add table i had done that but how to merge columns and row..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to reuse a window layout based on mysql rowcount?
Posted by: retroisbest - Nov-08-2021, 09:11 AM - Forum: GUI - Replies (2)

Good morning,
Please excuse my ignorance I have tried searching the forums to no avail.

I'm trying to generate multiple windows using pysimplegui bas..... More

Print this item

  Table displayed out of order
Posted by: nigelwright7557 - Nov-08-2021, 04:58 AM - Forum: General Coding Help - Replies (3)

I have a webpage with some buttons then a table then some links.

For some reason it displays buttons, links then table

If I delete table command..... More

Print this item

  Comepileerror from TMPDIR environmental variable?
Posted by: runboy1581 - Nov-08-2021, 02:26 AM - Forum: General Coding Help - No Replies

Hello. I am trying to use a scientific tool using python and requiring NVIDIA CUDA to run it. I tried to open it in Anaconda Spyder for a test, but I ..... More

Print this item

  Pandas (Python) in powerBI loop
Posted by: abderrazak_rouchad77 - Nov-08-2021, 12:54 AM - Forum: General Coding Help - No Replies

Good evening please i need your help I wrote this code to calculate the final stock; the problem is that I want to apply a loop on 'code article' and ..... More


Attached Files

Thumbnail(s)
   
Print this item

  function for extracting data from lists
Posted by: Paulman - Nov-08-2021, 12:46 AM - Forum: Homework - Replies (9)

Hi,
I'm struggling with this problem:
create a function named get_data, that takes two arguments, Data and Key.
- Data is the list of dictionarie..... More

Print this item

  Data Science - "key of type tuple not found and not a MultiIndex"
Posted by: priyanshuaggarwal - Nov-07-2021, 11:22 PM - Forum: Data Science - No Replies


.py   Ridge Project.py (Size: 5.92 KB / Downloads: 0)

Kaggle link of house prediction using Ridge r[url=https://python-forum.io/thread-35473.html]..... More


Attached Files

.xlsx   Real estate valuation data set.xlsx (Size: 31.95 KB / Downloads: 0)
Print this item

  List to table issue
Posted by: robdineen - Nov-07-2021, 09:12 PM - Forum: General Coding Help - Replies (2)

I am having a problem converting a list to a table.

an example list i'm using is

[Asset({ 'class': 'us_equity',
'easy_to_borrow': False,
'..... More

Print this item

  Subplot - Plotting 4 plots on the same row
Posted by: Menthix - Nov-07-2021, 02:54 PM - Forum: General Coding Help - Replies (1)

Hello !
I'd like to plot 4 plots on the same raw but I don't know how... I tried the command : plt.subplot(1,4,) but it doesn't seem to work.

Y..... More

Print this item

  Good practices with Python if
Posted by: Pedroski55 - Nov-06-2021, 11:42 PM - Forum: General Coding Help - Replies (1)

This kind of "if clause" works ok.

I'm just wondering if (no pun intended) this is good practice when writing Python.

[python]sign = '-' if n < ..... More

Print this item

  How can I find the value of k(subscript t+1) for periods t=1...50?
Posted by: maeva - Nov-06-2021, 09:44 PM - Forum: General Coding Help - Replies (2)

Hello,
I know that:

k(subscript t+1)= (1−δ)k(subscript t) + s[k^(θ)(subscript t)]
s=0.08
δ=0.3
θ= 0.35
k(subscript 0)=2.5

[python]
(δ,s,θ)..... More

Print this item

  Remove an item from a list contained in another item in python
Posted by: CompleteNewb - Nov-06-2021, 08:17 PM - Forum: General Coding Help - Replies (19)

I have this randomly generated list in python:

l = [[2,3,4,5],[2,3],[7,8],[2],[4,5,6]]

and i want to remove the items [2,3] and [2] because they..... More

Print this item

  How to get json data by request with header?
Posted by: dokipo - Nov-06-2021, 04:49 PM - Forum: Homework - No Replies

Hello, I would like to go to page https://losoviny.iamroot.eu/part_one and write json text from there.
End at first I must login in https://losoviny...... More

Print this item

  Simple Python script, path not defined
Posted by: dubinaone - Nov-06-2021, 04:39 PM - Forum: General Coding Help - Replies (3)

Beginning python class, writing a simple script. I cannot figure out why my script is getting path not defined exception


Attached Files

.py   SteveDubinaFIrstScript_Att3.py (Size: 2.96 KB / Downloads: 322)
Print this item

  PyQt5 or tk
Posted by: Tek - Nov-06-2021, 03:55 PM - Forum: GUI - Replies (2)

Hello Py Community, I hope the weekend is seeing you all alive and well.
I have a quick question, recommendation request:

I've been working throug..... More

Print this item

  parallel iterables
Posted by: Skaperen - Nov-06-2021, 07:45 AM - Forum: News and Discussions - Replies (9)

is there a tool (an iterable) that can iterate over a list of given iterables in parallel?

Print this item

  Tkinter Window Has no Title Bar
Posted by: gw1500se - Nov-05-2021, 07:19 PM - Forum: GUI - Replies (4)

I am unable to get started with tkinter. I wrote this simple python3 script:

[python]
import tkinter as tk
top=tk.Tk()
top.title("Title")
top.m..... More


Attached Files

Thumbnail(s)
   
Print this item

  Encoding Error
Posted by: Racer_x - Nov-05-2021, 04:13 PM - Forum: General Coding Help - Replies (7)

Hi Good People,

How many times do I get to say I'm new to Python, man much to learn: I consistently am getting the following error:

[error]'lat..... More

Print this item

  kivy binding issue
Posted by: hammer - Nov-05-2021, 03:07 PM - Forum: GUI - Replies (8)

Can you pass arguments in the kivy bind operation? See below where i am experimenting with calling a function to build a input screen and add it to a ..... More

Print this item

  Dynamically Add rows to table
Posted by: TommyAutomagically - Nov-04-2021, 10:03 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm trying to take data from the database and display this within a table in my html template. But i want each item in the database to be show..... More

Print this item

  'module' object is not callable
Posted by: Racer_x - Nov-04-2021, 02:17 PM - Forum: General Coding Help - Replies (5)

Hi All,,

I'm a rookie with Python and as you can see from above I'm getting the following message. If I remove the xport line I receive no errors. ..... More

Print this item

  What to do when the requirements.txt file does not work
Posted by: Led_Zeppelin - Nov-04-2021, 01:09 PM - Forum: General Coding Help - Replies (2)

I tried to install the environment using requirements.txt file shown below. I used the usual command

pip install -r ....

[output]
#python==3.7..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 2 hours ago arbiel buran General Codin...
  Scraping a page with log ... 5 hours ago iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 7 hours ago Alexandros Alexandros General Codin...
  403 Error 09-17, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576193
  Tutorial Requ... 497809
  Web Scraping ... 440136
  Newbie with P... 383958
  New Users Int... 366616
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Baran12332 Today
Hershien Today
Diyaseating Today
marineoman Today
marineservice Today

User Panel Messages

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