Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,647
» Latest member: carellapansullon
» Forum threads: 37,394
» Forum posts: 169,943

Full Statistics

Online Users
There are currently 387 online users.
» 0 Member(s) | 379 Guest(s)
Bing, Google, Baidu, Yandex, Applebot, Google Image, Facebook

Latest Threads
Can provide python tutori...
Forum: Jobs
Last Post: carellapansullon
33 minutes ago
» Replies: 1
» Views: 173
Low code b2b e-commerce s...
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
1 hour ago
» Replies: 2
» Views: 325
Win or Loss Prediction
Forum: General Coding Help
Last Post: ksasi2k3
3 hours ago
» Replies: 4
» Views: 135
Good way to ignore case w...
Forum: General Coding Help
Last Post: menator01
4 hours ago
» Replies: 1
» Views: 75
how to edited Tkinter Top...
Forum: General Coding Help
Last Post: deanhystad
7 hours ago
» Replies: 7
» Views: 159
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
7 hours ago
» Replies: 1
» Views: 95
Cucumber installation
Forum: General Coding Help
Last Post: SandraYokum
9 hours ago
» Replies: 2
» Views: 106
if else statements
Forum: General Coding Help
Last Post: DeaD_EyE
10 hours ago
» Replies: 8
» Views: 3,819
Pulsing notification icon
Forum: Board
Last Post: plaintivemiserly
Today, 04:00 AM
» Replies: 4
» Views: 1,175
watchdog on_modified
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:23 PM
» Replies: 3
» Views: 178

 
  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 </>?
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: 7)
.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: 122)
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 (6)

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Can provide python tutori... 33 minutes ago Zahiba_Siddiqui carellapansullon Jobs
  Low code b2b e-commerce s... 1 hour ago makc AlluminumFoil Web Scraping ...
  Win or Loss Prediction 3 hours ago ksasi2k3 ksasi2k3 General Codin...
  Good way to ignore case w... 4 hours ago Winfried menator01 General Codin...
  how to edited Tkinter Top... 7 hours ago kucingkembar deanhystad General Codin...
  using mutable in function... 7 hours ago akbarza snippsat General Codin...
  Cucumber installation 9 hours ago SDS SandraYokum General Codin...
  if else statements 10 hours ago remy DeaD_EyE General Codin...
  Pulsing notification icon Today, 04:00 menator01 plaintivemiserly Board
  watchdog on_modified Yesterday, 18:23 CAD79 deanhystad General Codin...
  Volume label Yesterday, 15:16 DPaul DPaul Bar
Most views
  The best Prog... 412126
  Web Scraping ... 303157
  Tutorial Requ... 292832
  Newbie with P... 251042
  Thread remain... 233181
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7087
deanhystad 6216
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
carellapansullon Today
jlakyrn Today
Sladja Today
Olja Today
FastCode Today

User Panel Messages

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