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,539
» Latest member: Rolas
» Forum threads: 38,664
» Forum posts: 175,202

Full Statistics

Online Users
There are currently 56 online users.
» 0 Member(s) | 52 Guest(s)
Baidu, Bing, Yandex, Google

Latest Threads
How to package code for d...
Forum: General Coding Help
Last Post: mayukun
1 hour ago
» Replies: 0
» Views: 19
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
3 hours ago
» Replies: 1
» Views: 38
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
4 hours ago
» Replies: 8
» Views: 55,193
A penny doubled every day...
Forum: Homework
Last Post: walterliz
4 hours ago
» Replies: 6
» Views: 681
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
5 hours ago
» Replies: 3
» Views: 1,188
While loop is terminating...
Forum: Homework
Last Post: walterliz
5 hours ago
» Replies: 3
» Views: 420
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
5 hours ago
» Replies: 3
» Views: 189
Unable to define function...
Forum: Homework
Last Post: walterliz
5 hours ago
» Replies: 2
» Views: 54
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:14 AM
» Replies: 6
» Views: 672
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
Yesterday, 09:36 AM
» Replies: 3
» Views: 165

 
  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

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to package code for d... 1 hour ago mayukun mayukun General Codin...
  pip3 install certifi fail... 3 hours ago rb9594 Pedroski55 General Codin...
  My first python game : Ti... 4 hours ago ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 4 hours ago esoyboy walterliz Homework
  Exercise on reading a chu... 5 hours ago Nit_Picker walterliz Homework
  While loop is terminating... 5 hours ago jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 5 hours ago aryasinner walterliz Homework
  Unable to define function... 5 hours ago gmonroe walterliz Homework
  RemoTe server operation w... Yesterday, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering Yesterday, 09:36 deanhystad deanhystad GUI
  processing nested json da... Yesterday, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
Most views
  The best Prog... 572689
  Tutorial Requ... 485721
  Web Scraping ... 437145
  Newbie with P... 380094
  Thread remain... 351375
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7352
deanhystad 6857
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Rolas Today
mayukun Today
richardkrt Today
SAHIL54554 Today
walterliz Today

User Panel Messages

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