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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 3
» Views: 71
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
7 hours ago
» Replies: 3
» Views: 90
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 63
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 97
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,019
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,550
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 178
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,192
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,437

 
  [SOLVED] [Windows] Converting filename to UTF8?
Posted by: Winfried - Sep-06-2022, 03:53 PM - Forum: General Coding Help - Replies (5)

Hello,

On Windows, I need to loop through a list of filenames, and use them into UTF8 documents.

Problem is, some might contain characters, and ..... More


Attached Files

Thumbnail(s)
   
Print this item

  If with For statement shorthand?
Posted by: kaega2 - Sep-06-2022, 06:10 AM - Forum: General Coding Help - Replies (5)

Is there a way to reduce code down?

[python]for x in resources:
if resources[x] < MENU[option]["ingredients"][x]:
pr..... More

Print this item

  undefined function error
Posted by: JonWayn - Sep-06-2022, 05:24 AM - Forum: General Coding Help - Replies (5)

[python]
from scrapy import Spider
from scrapy.http import Request


class TesterSpider(Spider):
name = 'tester'
allowed_domains = ['bo..... More

Print this item

  Noob here. Random quiz program. Using a while loop function and alot of conditionals.
Posted by: monkeydesu - Sep-06-2022, 02:42 AM - Forum: General Coding Help - Replies (6)

I just started learning how to code last week and tried making a random quiz program for one of my first projects and it's not working as intended. I ..... More

Print this item

  Need help i just started the whole thing
Posted by: gabriel789 - Sep-06-2022, 02:14 AM - Forum: General Coding Help - Replies (16)

Hello my name is Gabriel. I have Just with the whole thing of python, and am very interested in the thing i don't even know how to pull up the termina..... More

Print this item

  It is possible?
Posted by: mtorressa - Sep-05-2022, 09:44 PM - Forum: News and Discussions - No Replies

Good afternoon, I am developing a code to optimize an investment portfolio, but I need to set some limits for the investment of certain assets. I want..... More

Print this item

  Running Standard Scaler in Python 3
Posted by: Led_Zeppelin - Sep-05-2022, 05:49 PM - Forum: General Coding Help - Replies (1)

I am trying to get the following code to work:

[code]
df.head()

df2 = df.drop(["Unnamed: 0", "timestamp"], axis=1, inplace=True)

df3=pd.Data..... More

Print this item

  Can't install tensorflow-addons with pip
Posted by: Agusms - Sep-05-2022, 12:12 PM - Forum: General Coding Help - Replies (3)

Hi everyone! Smile

I'm trying to use DocTR ocr, and I'm having a lot of issues. Right now I'm not able to install tensorflow-addons. I write t..... More

Print this item

  BlackJack with tkinter
Posted by: menator01 - Sep-05-2022, 05:06 AM - Forum: Code sharing - Replies (7)

This is my go at BlackJack. It's far from finished and I will rewrite and clean the code up when everything is working.
Just wanted to share the curr..... More

Print this item

  [Solved]Help with Threading
Posted by: Extra - Sep-04-2022, 06:51 PM - Forum: General Coding Help - Replies (7)

Hello,

I am trying to get my program to have a reminders function where I can ask it to remind me to do stuff & after a certain amount of time it w..... More

Print this item

Lightbulb Tkinter Class Import Module Issue
Posted by: AaronCatolico1 - Sep-04-2022, 06:11 PM - Forum: GUI - Replies (6)

I'm trying to keep my code clean by separating the GUI from the logic.

Inside of the 'main.py' file, I'd like to call functions from other files th..... More

Print this item

  [SOLVED] [BS] Why new tag only added at the end when defined outside the loop?
Posted by: Winfried - Sep-04-2022, 05:16 PM - Forum: General Coding Help - Replies (1)

Hello,

I need to add a new tag in all Placemark blocks in a KML file.

I notice it will only be added in the last Placemark when defined b..... More

Print this item

  Keeping up with IDEs and Virtual Environments...
Posted by: bytecrunch - Sep-04-2022, 12:32 PM - Forum: General Coding Help - Replies (7)

Hello Everyone,

I am trying to understand how to use virtual environments and different IDEs without problems...Let me start by explaining my curre..... More

Print this item

  [SOLVED] [BeautifulSoup] Why does it turn inserted string's brackets into &lt;/&gt;?
Posted by: Winfried - Sep-03-2022, 11:05 PM - Forum: General Coding Help - No Replies

Hello,

One more before I go to bed…

No matter what I try, BS turns t..... More

Print this item

  How to retrieve records in a DataFrame (Python/Pandas) that contains leading or trail
Posted by: mmunozjr - Sep-03-2022, 10:45 PM - Forum: General Coding Help - Replies (3)

I would like to know how to write a formula that would identify/display records of string/object data type on a Pandas DataFrame that contains leading..... More

Print this item

  [SOLVED] [Beautifulsoup] Find if element exists, and edit/append?
Posted by: Winfried - Sep-03-2022, 07:29 PM - Forum: General Coding Help - Replies (2)

Hello,

I read BS's documentation, but can't figure out something very simple: Fin..... More

Print this item

  If function is false search next file
Posted by: mattbatt84 - Sep-03-2022, 03:37 PM - Forum: General Coding Help - Replies (2)

I am comparing images from a master image to a 100s of others. If its not a match what is best practice to then search the next image. All images are ..... More

Print this item

  Using Tkinter to calculate while formula
Posted by: marlonsmachado - Sep-03-2022, 11:35 AM - Forum: GUI - Replies (3)

Hello all,

I'm trying to create a simple GUI interface with tkinter using a simple strokes calculator based on an user input. My simple code is bel..... More

Print this item

  Replace for loop to search index position
Posted by: illmattic - Sep-03-2022, 10:53 AM - Forum: General Coding Help - Replies (5)

Hi

I have following code which searches for index position of matching string without having to match everything:

[python]
sheet_num = []
for ..... More

Print this item

  Evaluating the Performance of Machine Learning Algorithms
Posted by: FelixLarry - Sep-02-2022, 09:20 PM - Forum: Code sharing - No Replies

Hello Comrades, as someone who is very new to python, I keep learning and always trying new stuff each day. Here is a code I have been able to put tog..... More

Print this item

  Python debug suddenly got bad
Posted by: ben1122 - Sep-02-2022, 08:39 PM - Forum: General Coding Help - Replies (3)

Debug
Suddenly when I debug, in order to see values, I must click Show value.
but it wasnt like that 10min ago.. H..... More

Print this item

  Instigating python script from via
Posted by: reddwarfcrew - Sep-02-2022, 08:16 PM - Forum: General Coding Help - Replies (6)

Hi, I created a py script and have been able to execute it from VBA. However, if I update the py script to require any 'import' line (eg import pandas..... More

Print this item

  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: 315)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 4 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 7 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578672
  Tutorial Requ... 509060
  Web Scraping ... 441834
  Newbie with P... 385782
  New Users Int... 375019
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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