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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

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

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
5 hours ago
» Replies: 1
» Views: 40
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
5 hours ago
» Replies: 11
» Views: 241
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
5 hours ago
» Replies: 3
» Views: 91
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
10 hours ago
» Replies: 5
» Views: 225
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 83
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,599
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 181
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 168
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,787
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,406

 
  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: 331)
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

  Serializing Python data Correctly (JSON)
Posted by: JgKSuperstar - Nov-04-2021, 12:23 PM - Forum: General Coding Help - Replies (4)

Hi, I want to store the users I created in the file named "asdsad". The first information is being processed correctly, but the second information is ..... More

Print this item

  Remote Job Python Developer
Posted by: JohWebster - Nov-04-2021, 11:18 AM - Forum: Jobs - Replies (4)

Hello,

I am working as a Website Developer at RugKnots. If you want to check the website, it is: www.rugknots.com

We are currently having a vaca..... More

Print this item

  SSL error while trying to update conda
Posted by: ilango - Nov-04-2021, 08:38 AM - Forum: General Coding Help - No Replies

We are trying to upgrade python 36 version to 3.6.13. Py36 is venv. We use miniconda as package manager. We performed successfully this task in dev en..... More

Print this item

  i making a terminal sign up website thing
Posted by: Kenrichppython - Nov-04-2021, 03:09 AM - Forum: General Coding Help - Replies (1)

code

def username():
username = input("username:")
print("are you sure thats your username?")
YesNo = input("press t if thats your u..... More

Print this item

  Issues with the task of reseaching a user in a Flask datbase
Posted by: Tsk42 - Nov-03-2021, 11:27 PM - Forum: Homework - Replies (2)

Hello, I’m a beginner with SQL and Flask and i’m having issues with a part of my website.
My goal is that a user fills an HTML form in which they fill..... More


Attached Files

.zip   ProjetNSI - Copy - Copy.zip (Size: 5.34 KB / Downloads: 353)
Print this item

  Updating a config file [solved]
Posted by: ebolisa - Nov-03-2021, 10:59 PM - Forum: General Coding Help - Replies (8)

Hi,

I've a config.py file with the following content:

[python]
from mqtt_as import config

config['ssid'] = 'my router'
config['ssid_pw'] = ..... More

Print this item

Photo (Beginners problem) Does file change during this code?
Posted by: fiqu - Nov-03-2021, 09:30 PM - Forum: General Coding Help - Replies (3)

I dont understand what makes the two "print('# items are:', len(code))" give different results? Does the code change anything in the cfile? And why do..... More


Attached Files

Thumbnail(s)
   
Print this item

  GTK3.0 Color Selection Widget
Posted by: Robib - Nov-03-2021, 08:54 PM - Forum: GUI - Replies (3)

Hello.
I hope this is the right place to ask and someone can help me with GTK+ 3.0 Color Selection Widget,
It works fine and i can get color and alp..... More

Print this item

  <title> django page title dynamic and other field (not working)
Posted by: lemonred - Nov-03-2021, 05:08 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello , my name luigi from italy age 39 old year .. my studing hobby web programming for django web framework.
my problem not work in template <title..... More

Print this item

  Hashing an address for binary file
Posted by: Python_help - Nov-03-2021, 04:38 PM - Forum: General Coding Help - Replies (8)

I am facing the error: OSError: [Errno 22] Invalid argument when trying to dump an object record to the hashed address in a .dat binary file, any idea..... More

Print this item

  Matplotlib scatter plot in loop with None values
Posted by: ivan_sc - Nov-03-2021, 01:23 PM - Forum: Data Science - Replies (1)

Hello,

As part of a more complex project, I am trying to plot multiple curves sharing a common X axis.
However, each curve could have some None va..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to add another task?
Posted by: Makada - Nov-03-2021, 11:15 AM - Forum: General Coding Help - Replies (2)

Hi,

i have to code below working just fine, but i dont knnow how to add the same task (with other .dat file) with a 10 minute interval within this ..... More

Print this item

  Widget Tutorial Series for wxPython
Posted by: Knight18 - Nov-03-2021, 04:59 AM - Forum: Tutorial Requests and Submissions - No Replies

Here's a tutorial series on wxPython that has an individual tutorial for each widget. About 15-..... More

Print this item

  How to get datetime from numeric format field
Posted by: klllmmm - Nov-03-2021, 03:18 AM - Forum: General Coding Help - Replies (3)

Hi there,

Can someone help me to extract datetime from the following "data" field

[python]
import pandas as pd
import datetime as dt

df1 = ..... More

Print this item

  Dict and Isin
Posted by: JonahPython - Nov-03-2021, 02:51 AM - Forum: General Coding Help - Replies (1)

I need help on data dict and isin codes. Can anybody assist what is the python codes to achieve the results. Thanks.

I have two dataframes.

Data..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 5 hours ago lary_p Larz60+ Homework
  [Tkinter] I’m building a ... 5 hours ago tsgiannis tsgiannis GUI
  Help with Serial.write in... 5 hours ago racingsubby Larz60+ General Codin...
  Backward compatibility qu... 10 hours ago yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [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
Most views
  The best Prog... 578791
  Tutorial Requ... 509683
  Web Scraping ... 441901
  Newbie with P... 385891
  New Users Int... 375787
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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