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,008

Full Statistics

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

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

 
  Scraping and breaking out of Loop
Posted by: giddyhead - Sep-07-2022, 02:41 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello everyone, Need your help with the following script the problem I am running into it pages down in a continuous loading page, until it reaches th..... More

Print this item

  Telegram bot python help!
Posted by: wolfdevs - Sep-07-2022, 11:34 AM - Forum: General Coding Help - No Replies

Hello guys. I want to do a project but I couldn't find a resource.

For example;

Is it possible to make 50 telegram accounts speak like a real us..... More

Print this item

  How can histogram bins be separated and reduce number of labels printed on x-axis?
Posted by: cadena - Sep-07-2022, 12:50 AM - Forum: General Coding Help - Replies (1)

I have a series of Counter() whose graphs I want to plot. The issue is that there are around 120 to 150 bars that are plotted. I've tried playing with..... More


Attached Files

Thumbnail(s)
       
Print this item

  dnload/upload with FTP
Posted by: ebolisa - Sep-06-2022, 11:01 PM - Forum: General Coding Help - Replies (4)

Hi,

What's the right syntax to connect to a ftp server and download a file?
The following code cannot find the file however, I can with a ftp clie..... More

Print this item

  Feature Extraction and Modeling Pipeline
Posted by: FelixLarry - Sep-06-2022, 09:44 PM - Forum: Code sharing - Replies (1)

[python]# Create a pipeline that extracts features from the data then creates (evaluates) a model
import pandas as pd
import numpy as np
from sklea..... More

Print this item

  Automate Machine Learning Workflows with Pipelines
Posted by: FelixLarry - Sep-06-2022, 09:37 PM - Forum: Code sharing - No Replies

[python]# Create a pipeline that standardizes (prepares) the data then evaluates a model
import pandas as pd
import numpy as np
from sklearn.model_..... More

Print this item

  Regular Expression search to comment lines of code
Posted by: Gman2233 - Sep-06-2022, 09:36 PM - Forum: General Coding Help - Replies (5)

Hello!

I'm hoping you guys can help me with a thorny issue I'm having.
I'm a beginner, not having touched Python since University 12 years ago :-)..... More

Print this item

  Choosing the Best Machine Learning Model
Posted by: FelixLarry - Sep-06-2022, 09:30 PM - Forum: Code sharing - Replies (1)

[python]# Comparing classification algorithms
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection ..... More

Print this item

  Compare Machine Learning Regression Algorithms Consistently
Posted by: FelixLarry - Sep-06-2022, 09:25 PM - Forum: Code sharing - No Replies

[python]# Comparison of Regression Algorithms
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection ..... More

Print this item

  how often do you reboot your computer?
Posted by: Skaperen - Sep-06-2022, 07:21 PM - Forum: Bar - Replies (7)

how often do you reboot your computer?

any computer you have. or reinstantiate a cloud instance.

i reboot my Xubuntu 20.04 laptop about weekly...... More

Print this item

Thumbs Up Newbie needs help
Posted by: dvejsa - Sep-06-2022, 07:09 PM - Forum: General Coding Help - Replies (5)

Hello guys,

Im just learning Pyhton and doing a code in Replit.. I think Im doing ok so far but Im stuck on a thing that maybe some one here might ..... More

Print this item

  How are these while loops being used?
Posted by: thefatron - Sep-06-2022, 06:44 PM - Forum: Homework - Replies (3)

Very new to programming and simply dont understand how this while loop is being used? Is the itr=itr.next the condition that needs to be maintained? I..... More

Print this item

  Get iPhone Location
Posted by: AlphaInc - Sep-06-2022, 04:32 PM - Forum: General Coding Help - No Replies

Hello everybody,

I'm trying to write a script that first checks some ips of mine (phone, pc, etc.) which are stored in a json file to "confirm" tha..... More

Print this item

  [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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 3 hours ago eedjsa Gribouillis General Codin...
  Lottery generator (beginn... 10 hours ago 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... 580322
  Tutorial Requ... 518756
  Web Scraping ... 442750
  Newbie with P... 386936
  New Users Int... 385968
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
python 6
metulburr 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