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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,588

Full Statistics

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

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Biks
10 hours ago
» Replies: 1
» Views: 1,819
My goal to be hired worki...
Forum: News and Discussions
Last Post: Biks
10 hours ago
» Replies: 3
» Views: 1,115
real community
Forum: News and Discussions
Last Post: Biks
10 hours ago
» Replies: 4
» Views: 3,068
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
Today, 08:52 AM
» Replies: 5
» Views: 173
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
Today, 06:18 AM
» Replies: 4
» Views: 144
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 92
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,558
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 254
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,067
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 485

 
  Adding Cosinus as utime.sleep variable
Posted by: Kreszy - Sep-19-2019, 04:27 PM - Forum: General Coding Help - No Replies

Okay, so I´m having trouble using the Cosinus as variable for ms. I want Cosinus(x) to reach it´s limit at led 11, then go back down again, so I get a..... More

Print this item

  Instances sharing attributes
Posted by: midarq - Sep-19-2019, 04:26 PM - Forum: General Coding Help - Replies (4)

Hello,

I have the following problem:
Why is the instance B updating and how do i prevent that?
[python]
class myclass():

def __init__(sel..... More

Print this item

  If Else Statement with User Input
Posted by: CalPark16 - Sep-19-2019, 03:22 PM - Forum: General Coding Help - Replies (1)

Hello all.

I have an assignment in Python where I need to ask the user whether they are happy or unhappy. The program will then draw a smiley face..... More

Print this item

  Using onedrive through API on linux
Posted by: rdugau - Sep-19-2019, 03:03 PM - Forum: General Coding Help - Replies (1)

Hello,

I would like to upload files on onedrive

But I would like to do that with python and on linux.

I did'nt succed to..... More

Print this item

  creating a range of unique & sequential ID's in a database while handling concurency
Posted by: jertel - Sep-19-2019, 02:41 PM - Forum: Web Scraping & Web Development - No Replies

I am in the planning phase of a project to create an app. I am wondering if anyone has any general strategy for what I outline below.

I have a nee..... More

Print this item

  List/String seperation issue
Posted by: YoungGrassHopper - Sep-19-2019, 01:50 PM - Forum: General Coding Help - Replies (13)

Hey guys,

Hope you can shed some light on this matter.
In this task I need to create a function that displays the amino acid type that corresponds to..... More

Print this item

  How to access arguments by name from function
Posted by: SriRajesh - Sep-19-2019, 01:38 PM - Forum: General Coding Help - Replies (7)

Hi,

I have function in which I am passing multiple lists. Now, I want to access (or assign to another variable) the lists (given as arguments in fu..... More

Print this item

  [PySimpleGUI] How to go to next page
Posted by: Elmit - Sep-19-2019, 12:21 PM - Forum: GUI - Replies (2)

I just started to use PySimpleGUI and need a kick start.

I have a menu_def with the pages I want to show. For each page I created a layoutPagex
..... More

Print this item

  update certbot's python version
Posted by: metulburr - Sep-19-2019, 11:51 AM - Forum: General Coding Help - No Replies

Does anyone know how to link a newer python version to certbot?

When running a command I get a depreciated warning for python 2.x so i am unsure ho..... More

Print this item

  Help for simplifying code
Posted by: mmk1995 - Sep-19-2019, 11:02 AM - Forum: General Coding Help - Replies (8)

Hello,
How can I simplify below two coding to make the code clean?
coding 1:
[python]
Case1,Case2,Case3,Case4,Case5=0,0,0,0,0,0
if rule = 1:
..... More

Print this item

  How to understand asyncio.gather return_exceptions=False?
Posted by: learnpython - Sep-19-2019, 09:35 AM - Forum: General Coding Help - Replies (2)

In doc of python 3.7.4, the information about asyncio.gather return_exceptions=False says

"If return_exceptions is False (default), the first rais..... More

Print this item

  AttributeError: (“module 'pandas' has no attribute 'rolling_std'”
Posted by: Mariana136 - Sep-19-2019, 09:10 AM - Forum: Data Science - Replies (4)

Hello,
I have an error ocurred in a code in Python- Jupyter. I am new in python. The error ocurred where it's used pd.rolling_std. I don't know why i..... More

Print this item

  How to run same process simultaneously
Posted by: exploit123 - Sep-19-2019, 08:48 AM - Forum: General Coding Help - Replies (1)

I have a jar and I want to make a python script for linux that checks if the jar is opened in the linux task manager and if its not to open it 5 times..... More

Print this item

  Python installation to folder. No admin rights
Posted by: Toug19 - Sep-19-2019, 08:37 AM - Forum: General Coding Help - Replies (3)

Hi,
I succeeded once to make an installation of Python 2.7.16 to a folder. It's now a full usable python with all modules and add-on (such as pip and ..... More

Print this item

  managing command codes for external controller box
Posted by: Oolongtea - Sep-19-2019, 08:32 AM - Forum: General Coding Help - No Replies

I am trying to create a library to encode commands sent over TCP to a controller box and decode the responses.
To makes things simple, each command c..... More

Print this item

  Restful API Python Flask Postman
Posted by: starter_student - Sep-19-2019, 07:12 AM - Forum: Web Scraping & Web Development - Replies (1)

already since 1 week I try to build a simple CRUD RESTful API without success. So when I create/(test) user and post in the cmd I can list them (User...... More

Print this item

  clueless about the error message
Posted by: findbikash - Sep-19-2019, 06:55 AM - Forum: General Coding Help - Replies (2)

[python]
rfm['r_quartile'] = pd.qcut(rfm['recency'], 4, ['1','2','3','4'])
rfm['f_quartile'] = pd.qcut(rfm['frequency'], 4, ['4','3','2','1'])
rfm[..... More

Print this item

  Chatbot
Posted by: metro17 - Sep-19-2019, 06:47 AM - Forum: General Coding Help - Replies (2)

How do I auto collect the user information like UserID,username,emailaddress automatically once the user starts talking to the chatbot.
Chatbot is re..... More

Print this item

  Help plotting function
Posted by: Pbworm1998 - Sep-19-2019, 03:17 AM - Forum: General Coding Help - Replies (1)

Hello. I am new to python.

I wanted to know the syntax for a problem

Suppose I want to plot a quantity x = (constant with a fixed given value) *..... More

Print this item

  Menu in frame
Posted by: Elmit - Sep-19-2019, 01:38 AM - Forum: GUI - Replies (2)

Hi,

I try to make an application, which has multiple frames. Each frame should get a menu.

I found 2 piece of codes, but I couldn't figure out h..... More

Print this item

  how to set echo ON in Python call to Oracle SQL
Posted by: nmrt - Sep-19-2019, 01:19 AM - Forum: General Coding Help - Replies (4)

Hi All,

I am beginner in Python, i am trying to access oracle DB from Python program. I am able to get the output with the below code. However, i w..... More

Print this item

  pydoc3 server and browser
Posted by: fmouse - Sep-18-2019, 10:59 PM - Forum: General Coding Help - Replies (1)

For some time I've been starting a pydoc server (Python 2.7) from my desktop startup scripts and using it to document a server directory containing a ..... More

Print this item

  Problem Help!
Posted by: Noxmancer - Sep-18-2019, 09:41 PM - Forum: General Coding Help - Replies (5)

I'm having trouble with the code for this problem:
Write a program for course registration. Students can use this program to add and drop cou..... More

Print this item

  How to add a few empty rows into a pandas dataframe
Posted by: python_newbie09 - Sep-18-2019, 07:20 PM - Forum: Data Science - Replies (2)

Hi, so far the examples I have found seems to only add 1 empty row to an existing dataframe but what if I have a specified number of empty rows that I..... More

Print this item

  How to terminate a list of inputs with a set value? SOS
Posted by: Manning - Sep-18-2019, 06:30 PM - Forum: General Coding Help - Replies (2)

I am attempting to make a program in Python 3.7 where you would input integers one after another until you terminate it by entering the value -3. Once..... More

Print this item

  Anyone use Poetry?
Posted by: nilamo - Sep-18-2019, 06:06 PM - Forum: Bar - Replies (1)

https://poetry.eustace.io/

It's a package manager that sits on top of pypi, and is meant to be used instead of pip. I just found it today, and the..... More

Print this item

  unable to list files in a directory
Posted by: christober - Sep-18-2019, 05:17 PM - Forum: General Coding Help - Replies (2)

Hi,

I'm unable to read/list the files in a directory (in windows OS), as the directory contains more than 1 lakhs files (almost 1,56,000 files).
..... More

Print this item

  How can I run a function inside a loop every 24 values of the loop iteration range?
Posted by: mcva - Sep-18-2019, 04:24 PM - Forum: Homework - Replies (1)

How can I run a function inside a loop every 24 values of the loop iteration range?

I only want to TempLake[i]=fix_profile(Nlayers,TempTDMA,Areat0)..... More

Print this item

  web scrape not returning number correctly
Posted by: willyflapoor - Sep-18-2019, 04:11 PM - Forum: Web Scraping & Web Development - Replies (2)

I am building an application that compares wine prices, but I ran into a problem.
When I try to get the price of the wine (under the variable "price"..... More

Print this item

  why I can't scrape a website?
Posted by: kmkim319 - Sep-18-2019, 03:46 PM - Forum: Web Scraping & Web Development - Replies (7)

I'm trying to get all the names of restaurants with 'food' keyword from the following website. However, I need to learn more things in order to just p..... More

Print this item

  list and sort query
Posted by: arian29 - Sep-18-2019, 02:55 PM - Forum: Homework - Replies (2)

qwe=[1,2,3,9,8,7,6]

qwe.sort()
print(qwe)

# This give output [1, 2, 3, 6, 7, 8, 9]

BUT

print(qwe.sort())

# This give output None

Wh..... More

Print this item

  matplotlib isn't recognized after installation
Posted by: Pavel_47 - Sep-18-2019, 02:10 PM - Forum: General Coding Help - Replies (5)

[font=Arial, Helvetica, sans-serif]Hello,

I've installed matplotlib using the following command:
[font=Courier New, Courier, monospace]python -m p..... More

Print this item

Question pdfkit.from_string('Hello!','out.pdf') gives FileNotFoundError
Posted by: sipriusPT - Sep-18-2019, 01:18 PM - Forum: General Coding Help - Replies (3)

I am trying to use pdfkit library, one folder with permissions to write, and have also trying in root, who is in this case C:\, for example,
..... More

Print this item

  I upgraded my system to 16GB RAM!
Posted by: Gribouillis - Sep-18-2019, 12:47 PM - Forum: Bar - Replies (8)

I'm so happy, let's celebrate! Champagne!

Print this item

  Vernam encryption method for files
Posted by: JohnCTX - Sep-18-2019, 12:09 PM - Forum: General Coding Help - Replies (1)

I have the following code snippet:

[python]
import secrets

def VernamCipherFunction(text, key):
result = "";
ptr = 0;
for ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 10 hours ago decuser Biks News and Disc...
  My goal to be hired worki... 10 hours ago GnomeSweetGnome Biks News and Disc...
  real community 10 hours ago decuser Biks News and Disc...
  print does not open conso... Today, 08:52 Tycho_2025 Tycho_2025 General Codin...
  create ocr to detect lice... Today, 06:18 bimosora Pedroski55 General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
Most views
  The best Prog... 577514
  Tutorial Requ... 501602
  Web Scraping ... 441122
  Newbie with P... 385171
  New Users Int... 370051
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday
DataAnalytics021 Yesterday

User Panel Messages

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