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 41 online users.
» 1 Member(s) | 37 Guest(s)
Bing, Twitter, mamta25

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
Yesterday, 10:18 AM
» Replies: 1
» Views: 61
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 273
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 09:41 AM
» Replies: 3
» Views: 118
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 253
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 97
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,609
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 198
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 179
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,005
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,416

 
  How to pass variables from one class to another
Posted by: hobbyist - Sep-22-2021, 11:36 AM - Forum: General Coding Help - Replies (18)

How to pass values from one class to another when the class you want to get value from is after. What I mean: Suppose I have two classes:

[python]
cl..... More

Print this item

  Found buttonstate in tabs
Posted by: MacTommu - Sep-22-2021, 11:10 AM - Forum: GUI - Replies (4)

Is a total beginner when it comes to Python and Tkinter. I have programmed a lot of C # and VB over the years and thought of learning a litle Python f..... More

Print this item

  get data from 2 async functions
Posted by: korenron - Sep-22-2021, 08:39 AM - Forum: General Coding Help - No Replies

hello,
I'm running 2 simple async function (getTime and get random rumber)
the functions are working without any problems

I want to be able to r..... More

Print this item

  Equipment Portal
Posted by: jamesaarr - Sep-22-2021, 07:52 AM - Forum: Code Review - Replies (5)

Hello,

Please see my finished code below, I'm looking for suggestions of features to add and how to make it better :)

[python]
import PySimpleG..... More

Print this item

  Need some coding guidance for a task
Posted by: peny - Sep-22-2021, 07:18 AM - Forum: General Coding Help - Replies (5)

I am not that good in scripting (I have worked before in python) but I would like to give a try, since I need to create a script to automatize my proc..... More

Print this item

  Uninstall unused COM ports windows 10
Posted by: adbrooker - Sep-22-2021, 02:13 AM - Forum: General Coding Help - Replies (1)

I'm very new to python and I haven't gotten very far with my code but below is what I have so far

[python]import serial.tools.list_ports as port_li..... More

Print this item

  Simple Password Checker
Posted by: Dexty - Sep-21-2021, 09:29 PM - Forum: General Coding Help - Replies (8)

I've been trying to write a script that simply checks the strength of a password but the results aren't satisfactory. I know there are other ways to d..... More

Print this item

  How to do line continuation in Jupyter Notebook?
Posted by: Mark17 - Sep-21-2021, 07:04 PM - Forum: General Coding Help - Replies (4)

Hi all,

This:

[Python]
#print('Date is {}, DTE is {}, EXP is {}, STRIKE is {}, PRICE is {}, VOL is {}, \
OI is {}, and DELTA is {}'.format(DAT..... More

Print this item

  Coding for Python and Raspberry pi
Posted by: beast - Sep-21-2021, 03:37 PM - Forum: General Coding Help - Replies (3)

Dear Everyone
I want to know if there is a code for tracking GPS, i already have the GPS but

I want to work on Raspberry pi, I need a code for i..... More

Print this item

  numpy adding columns
Posted by: rwahdan - Sep-21-2021, 03:33 PM - Forum: Data Science - Replies (4)

Hi,

I am trying to add columns to a numpy array but i am getting an error

[python]
import numpy as np
numbers = np.array([
[2,4],
[8..... More

Print this item

Thumbs Up mpl_toolkits
Posted by: rf_kartal - Sep-21-2021, 12:10 PM - Forum: General Coding Help - No Replies

Hi,My Ubuntu version is 20.04 LTS and python version is 3.9
When I import as below and install the package in PyCharm, I get a "package install faile..... More

Print this item

  Pindom API
Posted by: mike_jones - Sep-21-2021, 08:14 AM - Forum: General Coding Help - Replies (1)

Does Anybody know what to include in a script if I want to extract data from pingdom to a google sheet with a token login please?

Print this item

  change csv file into adjency list
Posted by: ainisyarifaah - Sep-21-2021, 02:49 AM - Forum: General Coding Help - No Replies

Hello everyone. I have a csv file like this.
[Image: view?usp=sharing]

and I w..... More

Print this item

  Change a list to integer so I can use IF statement
Posted by: buckssg - Sep-21-2021, 12:38 AM - Forum: General Coding Help - Replies (3)

Greetings fellow pythoners, I got a huge favor to ask. I have tried everyway imaginable to turn psutil.cpu_percent() results into an integer so I can ..... More

Print this item

  How to invert scatter plot axis
Posted by: Mark17 - Sep-20-2021, 06:13 PM - Forum: General Coding Help - Replies (3)

Hi all,

Here's some code:

[Python]
import pandas as pd
import matplotlib.pyplot as plt
import time
import numpy as np

start_time = time.t..... More

Print this item

  is this Unicode printable?
Posted by: Skaperen - Sep-20-2021, 05:32 PM - Forum: General Coding Help - Replies (2)

given a Unicode character (a str of len() == 1 or maybe an int that can be used with chr()) how can the code determine if it is printable? how small ..... More

Print this item

  Reading CSV From another directory
Posted by: jamesaarr - Sep-20-2021, 04:18 PM - Forum: General Coding Help - Replies (1)

Hello,

I want to read a CSV using the CSV module from a file in another directory. Would you have any idea how I do that?

Thanks,
Jamie

Print this item

  ImportError: cannot import name 'get_config'
Posted by: russray2008 - Sep-20-2021, 02:18 PM - Forum: General Coding Help - No Replies

I am working through some backend testing.

My problem is I cannot identify the right combination of libraries that work. I am using a machine lear..... More

Print this item

  BeautifulSoup Showing none while extracting image url
Posted by: josephandrew - Sep-20-2021, 11:40 AM - Forum: Web Scraping & Web Development - No Replies

Hello Everyone!
I am trying to extract images url from gallery images on woocommerce website, but its showing none when I tried through csv file. Als..... More

Print this item

  Human Activity recognition in real time
Posted by: pihidream - Sep-20-2021, 09:55 AM - Forum: Data Science - No Replies

Hi everyone, i have followed a youtube tutorial to build a model for human activity recognition using accelerometer.
In my model i used both accelero..... More

Print this item

  [newbie] I offer 10 hours/week for free to develop python
Posted by: xsico - Sep-20-2021, 08:12 AM - Forum: Jobs - No Replies

Hello,
i offer 10 hours/week for free to develop on Python on data science libraries (No django).
I did 2 courses on udemy and i love python. So, i'..... More

Print this item

  Too many if statements working as "tags"
Posted by: zeek - Sep-20-2021, 07:47 AM - Forum: General Coding Help - Replies (3)

My code is too long as I'm repeating the same function for every if statement
I'm doing it with BeautifulSoup since it's a web scrapping project
Bas..... More

Print this item

  Installed pip install openpyxl, Requirement already satisfied, but, still have error
Posted by: jonah88888 - Sep-20-2021, 04:25 AM - Forum: General Coding Help - Replies (3)

Hi,

I faced an error when trying to openpyxl. Thus, I install with pip install openpyxl. It was success.

Requirement already satisfied: openpyx..... More


Attached Files

Thumbnail(s)
   
Print this item

  Reddit bot thread
Posted by: Gabriel777 - Sep-20-2021, 02:57 AM - Forum: General Coding Help - No Replies

Ok so I have the following code to make a reddit bot that posts responses to any new comments, but my question is how do I have it post to any posts s..... More

Print this item

  Python requests oauth2 access token
Posted by: herobpv - Sep-20-2021, 02:39 AM - Forum: General Coding Help - Replies (6)

Hi, I am new to python programming and trying to make a RESTful api call and retrieve json payload from a GET method. I am using the below code but I ..... More

Print this item

  Generate a list
Posted by: sasitha96 - Sep-19-2021, 06:15 PM - Forum: General Coding Help - Replies (5)

How to generate a list of all the ‘.exe’ files available in ‘C:\Windows\system32’ directory and store them in a log file created in the C drive with t..... More


Attached Files

Thumbnail(s)
   
Print this item

  Help with WebSocket reading data from anoter function
Posted by: korenron - Sep-19-2021, 09:16 AM - Forum: General Coding Help - No Replies

hello ,
I'm trying to write a code of reading data from canbus and using websocket to read "Live Data"
the web server is up(I can see the "Server ..... More

Print this item

  detecting a generstor passed to a funtion
Posted by: Skaperen - Sep-19-2021, 12:20 AM - Forum: General Coding Help - Replies (9)

what is the appropriate pythonic way for a function to detect that a generator is passed to it? i can do this:
[python]
if type(arg).__name__=='gen..... More

Print this item

  updating pip
Posted by: DoctorDan - Sep-18-2021, 11:21 PM - Forum: News and Discussions - Replies (1)

Every time that I create a new venv I am warned that I should update pip.
I have several questions?
1 - Why would anyone not want to update pip to t..... More

Print this item

  {SOLVED]Help getting formula value in Excel to a csv
Posted by: Pedroski55 - Sep-18-2021, 10:55 PM - Forum: General Coding Help - Replies (1)

I have an Excel file allscoresCLASS.xlsx, where CLASS might be 20BE or similar.

Column 1 is id, column 2 is name, column 3 in studentnr.

Then I..... More

Print this item

  trying to save data automatically from this page
Posted by: thunderspeed - Sep-18-2021, 08:57 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello everyone,
I hope you are all well.

I'm trying to automatically save data from this graphical presentation in this link:

https://weather.c..... More

Print this item

  change string in MS word
Posted by: Mr_Blue - Sep-18-2021, 06:51 PM - Forum: General Coding Help - Replies (8)

hello,
i would like to change a word in a word document.

[python]from docx import Document
document = Document('/path/word_template.docx')
doc =..... More

Print this item

  'int' object is not subscriptable after API call
Posted by: ed8484 - Sep-18-2021, 01:24 PM - Forum: General Coding Help - Replies (1)

I am getting this error when I try to create a DataFrame from an API call. The API call itself is successful and returns data successfully..but not su..... More


Attached Files

Thumbnail(s)
       
Print this item

  Structuring and pivoting corrupted dataframe in pandas
Posted by: gunner1905 - Sep-18-2021, 12:22 PM - Forum: General Coding Help - Replies (2)

I have a dataframe which I read from an excel file. The thing is first 4 columns and its values look good. But after 5th column data seems kind of co..... More


Attached Files

Thumbnail(s)
       
Print this item

  Inconsistent behaviour in output - web scraping
Posted by: Steve - Sep-18-2021, 10:25 AM - Forum: General Coding Help - Replies (6)

Hi all,

I'm not an expert coding in python and have used it a few times to write things like the following example code which is meant to extract s..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding Yesterday, 10:18 lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Yesterday, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 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... 578822
  Tutorial Requ... 509815
  Web Scraping ... 441914
  Newbie with P... 385908
  New Users Int... 376005
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
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Kacper Yesterday
isla123456 Yesterday
vibrometro Yesterday
thebigback 11-10
dimitriwati 11-10

User Panel Messages

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