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,384
» Latest member: Michaelhauct
» Forum threads: 38,820
» Forum posts: 176,011

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 42 Guest(s)
Google, Bing, AOL, Apple, snippsat

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
21 minutes ago
» Replies: 4
» Views: 95
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Amowtonyl
Today, 10:34 AM
» Replies: 4
» Views: 9,838
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 07:58 AM
» Replies: 2
» Views: 120
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 69
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 118
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,284
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 91
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 748
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 136

 
  Python-for-Android:p4a: syntax error in main.py while compiling apk
Posted by: jttolleson - Sep-02-2022, 05:41 PM - Forum: General Coding Help - Replies (2)

Hello all,

Jayson Again - and I am making a website and android app by using an iframe in python then converting the .py file to an apk in p4a modu..... More


Attached Files

Thumbnail(s)
           
Print this item

  Selenium suddenly fails to find element
Posted by: Pavel_47 - Sep-02-2022, 04:20 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

A strange phenomenon occurred when using Selenium: after several successful executions, the command that searches for a particular element f..... More

Print this item

  Output difference from 2 lists of different sizes with words
Posted by: gracenz - Sep-02-2022, 02:29 PM - Forum: General Coding Help - Replies (5)

Hi everyone.

Let say I have the following 2 lists with words of different sizes for example,
[python]list0=['guava','apple','banana','strawberry'..... More

Print this item

  Unknown Python Command
Posted by: Led_Zeppelin - Sep-02-2022, 02:28 PM - Forum: General Coding Help - Replies (9)

I need to know what this Python command does. I will state it now

[code]
indexData-org=pd.Dataframe(columns = ['Index', 'sensor_01', 'sensor_02',..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to format EasyOCR results in order to save to CSV?
Posted by: cubangt - Sep-02-2022, 02:06 PM - Forum: General Coding Help - No Replies

So im playing around with EasyOCR, and with only a few lines of code, its working pretty good so far on the few images i have tried.. BUT cant seem to..... More

Print this item

  Parse Nested JSON String in Python
Posted by: rwalde - Sep-02-2022, 06:34 AM - Forum: Data Science - Replies (4)

Hello All,
I am trying to parse complex JSON String from AWS Pricing JSON file and convert it into CSV file based on some conditions. I was able to a..... More


Attached Files

.json   index.json (Size: 8.91 KB / Downloads: 8)
.csv   expectedCSVFile.csv (Size: 10.51 KB / Downloads: 4)
Print this item

  random methods
Posted by: Skaperen - Sep-02-2022, 12:23 AM - Forum: General Coding Help - Replies (16)

i need a random number with a bell curve between A and B with absolute confinement to that range. this would be a float value. i have a use case whe..... More

Print this item

  finding local area in dictionary
Posted by: XavierPlatinum - Sep-01-2022, 11:07 PM - Forum: Game Development - Replies (3)

I have a dictionary of tile sprites, (x,y) are the keys. I think I have found how to determine the tiles local to the player, but I get a KeyError wh..... More

Print this item

  WARNING: Ignoring invalid distribution
Posted by: kucingkembar - Sep-01-2022, 09:40 PM - Forum: General Coding Help - Replies (1)

hi, every time I install using pip, I get this warning:
[error]WARNING: Ignoring invalid distribution -rotli (c:\python\python310\lib\site-packages)[..... More

Print this item

  Formatted string not translated by gettext
Posted by: YvanM - Sep-01-2022, 08:53 PM - Forum: General Coding Help - Replies (10)

Hi,

I am using gettext successfully for my program, except for one string that needs formatting. Program runs properly, but the string remains untran..... More

Print this item

  [split] NameError: name 'csvwriter' is not defined. Did you mean: 'writer'?
Posted by: cathy12 - Sep-01-2022, 12:51 PM - Forum: General Coding Help - Replies (4)

i am catherine. I just now started to learn python.
[python]
import random
import csv
a={"1":1}
print(len(a))

for i in range(100):
x=ran..... More

Print this item

  Impossible to cleanly uninstall Python 3.8.9
Posted by: Ftaniere - Sep-01-2022, 07:16 AM - Forum: General Coding Help - Replies (2)

I am using a Mac M1 running macOS Monterey 12.5.1.

[Context]

Trying to perform a clean install a package called FreqTrade, I run into the..... More


Attached Files

Thumbnail(s)
   
Print this item

  Paginate API in python
Posted by: shantanu97 - Sep-01-2022, 02:10 AM - Forum: General Coding Help - Replies (1)

I am having trouble writing pagination code in Python

How does the API request work?
First call by the client will be the regular endpoint of the..... More


Attached Files

.csv   APIData.csv (Size: 55.43 KB / Downloads: 318)
Print this item

  key error
Posted by: Led_Zeppelin - Aug-31-2022, 06:16 PM - Forum: General Coding Help - Replies (1)

The following code is not working and I believe it should.

[code]
q = df.loc[df2['machine_status']==0]['time_period']
p = df.loc[df2['machine_sta..... More


Attached Files

Thumbnail(s)
   
Print this item

  Python in Singularity Container on Ubuntu
Posted by: erdemath - Aug-31-2022, 02:17 PM - Forum: General Coding Help - No Replies

I have ubuntu 20.04 and downloaded singularity 3.10.2. I created a container wherein I need to download, install, run my python codes.
Here is the i..... More

Print this item

  export into excel, how to implement pandas into for-loop
Posted by: deneme2 - Aug-31-2022, 01:46 PM - Forum: General Coding Help - Replies (6)

Hello all,
I want to export json data file into excel in terms of loop code I wrote in the below.

football.json

[python]{
"results": [
{
..... More

Print this item

  Soup('A')
Posted by: new_coder_231013 - Aug-31-2022, 12:09 PM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

I've been going through an introductory Python book that includes some material on web scraping using BeautifulSoup. My question is about th..... More

Print this item

  best way to embed passwords into scripts
Posted by: mikey6785 - Aug-30-2022, 10:41 PM - Forum: General Coding Help - Replies (3)

what is the best way to embed passwords in python scripts?
I am wanting to automate tasks that would typically require credentials.

I've been loo..... More

Print this item

  DS/ML - what is next?
Posted by: OmegaRed94 - Aug-30-2022, 06:23 PM - Forum: Data Science - Replies (1)

Good day, Dear DS/ML specialists/enthusiasts

I have read several DS/ML and Python books, passed additional online courses, participated in Kaggle...... More

Print this item

  Removal of items in .txt using python
Posted by: nanakochan - Aug-30-2022, 05:46 PM - Forum: General Coding Help - Replies (8)

Hi, I hv been self-learning Python on youtube videos. Today I visited the topic of file operation in which I would use Python to operate on notepad(tx..... More

Print this item

  Link implementation
Posted by: JonWayn - Aug-30-2022, 03:38 PM - Forum: Web Scraping & Web Development - Replies (4)

Total newbie here. For starters in my scraping coding, I am faced with 2 websites that implement their links differently. In one case, I can return al..... More

Print this item

  TypeError: string indices must be integers
Posted by: JonWayn - Aug-30-2022, 01:02 PM - Forum: General Coding Help - Replies (12)

given the code snippet:
[python]
i = 0

for key, value in quiz.items():
i += 1
print(f"Question {str(i)} : {key['question']}")
[/python..... More

Print this item

  swapping data in mongodb
Posted by: saisankalpj - Aug-30-2022, 12:42 PM - Forum: General Coding Help - No Replies

I have created a mongodb collection in python django.The collection name is audit_details and it consists of following data
[output]
_id:630e026211cb3..... More

Print this item

  Searching for nested items within the dictionary data structure
Posted by: rob101 - Aug-30-2022, 08:55 AM - Forum: Code Review - Replies (10)

I've been studying the dictionary data structure as I wanted to discover a way of searching for nested items, so this code is a demonstration of that ..... More

Print this item

  Python: re.findall to find multiple instances don't work but search worked
Posted by: Secret - Aug-30-2022, 06:52 AM - Forum: General Coding Help - Replies (1)

I want to find ALL instances of asked questions and the persons who asked them in the below text.

++++++++++++++++

26 Mr Kwek Hian Chuan Henry a..... More

Print this item

  Trying to find the fastest way to bulk extract from oracle
Posted by: python300 - Aug-30-2022, 06:07 AM - Forum: News and Discussions - Replies (2)

Hi all,
We are on RHEL 8, Oracle DB 12+ and Python 3.9
I am trying to find the fastest way to extract large data from Oracle DB to local Linux file..... More

Print this item

  Beginner Python Error
Posted by: ianmac88 - Aug-30-2022, 12:36 AM - Forum: General Coding Help - Replies (4)

Hello,

I am extremely new to programming/python and I have been watching thenewboston on YouTube going through his Python Programming playlist. In..... More

Print this item

  count certain task in task manager[solved]
Posted by: kucingkembar - Aug-29-2022, 03:27 PM - Forum: General Coding Help - Replies (2)

hi, sorry for my bad English
I creating a downloader to download multiple files at once using python,
I will not write details, this is the part:
[pyt..... More

Print this item

  Installing Modules
Posted by: PythonBorg - Aug-29-2022, 08:52 AM - Forum: General Coding Help - Replies (10)

Hi There,

Have installed the Markdown module into Python3 using PIP.
it install without a problem... but when i try to use it, Python does not re..... More

Print this item

  will this work
Posted by: AGM - Aug-29-2022, 08:37 AM - Forum: Homework - Replies (2)

i made this but i cant test it cause i am on a chromebook and the compiler i used wont work, i want this to give player_ones_hand
7 random cards
(b..... More

Print this item

  python -m sysconfig
Posted by: Skaperen - Aug-29-2022, 12:30 AM - Forum: News and Discussions - Replies (3)

i get this:
[output]
lt1a/forums/2 /home/forums 4> python -m sysconfig|fgrep userbase
userbase = "/home/forums/.local"
lt1a/forums/2 /home/forums..... More

Print this item

  MIME type
Posted by: Skaperen - Aug-28-2022, 11:37 PM - Forum: News and Discussions - Replies (2)

when might Python source code files get a real permanent MIME type, instead of temporary "text/x-python", such as perhaps "lang/python"?

Print this item

  Help Switching between keyboard/Mic input in my code
Posted by: Extra - Aug-28-2022, 08:56 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm trying to get my voice assistant to be able to take user commands via Keyboard or Mic depending on what the user chooses.
Right now, it d..... More

Print this item

Star Python GUI - PyQt Containers and Layouts Explained
Posted by: panofish - Aug-28-2022, 07:29 PM - Forum: GUI - No Replies

Part 3 of my youtube series on Python Desktop GUI creation is out.
https://youtu.be/ejKel3ObLPc

This one c..... More

Print this item

  Text stacking on top of one another
Posted by: menator01 - Aug-28-2022, 02:44 PM - Forum: Game Development - Replies (5)

I've been playing around a bit with pygame and image buttons. When creating a button with the button class, I can't seem to get button text correct. I..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 21 minutes ago eedjsa bowlofred General Codin...
  Lottery generator (beginn... Today, 10:34 Hullari Amowtonyl General Codin...
  [split] How to ask Smart ... Yesterday, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580324
  Tutorial Requ... 518777
  Web Scraping ... 442752
  Newbie with P... 386936
  New Users Int... 385997
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Michaelhauct Today
eedjsa Today
byanfrances6176 Today
Amowtonyl Today
sofiadavis1840 Today

User Panel Messages

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