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,932
» Latest member: XenonBlack
» Forum threads: 38,721
» Forum posts: 175,502

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 37 Guest(s)
Applebot, Google, Bing, AOL, Mojeek, AOL, Facebook

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: RonR
5 hours ago
» Replies: 2
» Views: 873
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
8 hours ago
» Replies: 0
» Views: 49
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Today, 07:07 AM
» Replies: 1
» Views: 353
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,460
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,525
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 392
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 123
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,900
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,154
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 839

 
  The of ( : ) what does it do?
Posted by: Frankduc - Jul-30-2022, 02:44 PM - Forum: General Coding Help - Replies (11)

Hi,

I dont understand this part of the code.
The : between protein and Nutrient in protein: Nutrient = Nutrient(name="Protein") what does it do?..... More

Print this item

  Get Current Directory From ShortCut.
Posted by: Oshadha - Jul-30-2022, 12:56 PM - Forum: General Coding Help - Replies (1)

Hi, My question is regarding file Directories in Windows based Systems:
Suppose I have a Directory : D:\PyProj\
In that Directory I..... More

Print this item

  Server Error with parse_args() using Flask
Posted by: NoNameoN - Jul-30-2022, 09:42 AM - Forum: Web Scraping & Web Development - No Replies

I'm trying to develop an api using flask but i'm having a server error in post request, i use this simple code
[python]
parserTest = reqparse.Reques..... More

Print this item

  Embedded Python in C++
Posted by: Xeno - Jul-30-2022, 05:12 AM - Forum: General Coding Help - Replies (19)

Is there a way to PyImport_Import(PyModule) so that all it's functions or classes are run as directly vs as import?

Sample Python Code (main.py):
..... More

Print this item

  'dict_items' object has no attribute 'sort'
Posted by: Calli - Jul-29-2022, 08:57 PM - Forum: General Coding Help - Replies (6)

[python]monthdays = {'Jan':31, 'Feb':28, 'Mar':31,
'Apr':30, 'May':31, 'Jun':30,
'Jul':31, 'Aug':31, 'Sep':30,
..... More

Print this item

  Getting proper x,y axis values
Posted by: pyhill00 - Jul-29-2022, 03:30 PM - Forum: General Coding Help - Replies (8)

I am trying to change the values of the axes so that the x and y values (0.3,0.4) and (0.3,1) are shown on the axes for the points. Anyone know how to..... More

Print this item

  how to make the movement humanized
Posted by: isv - Jul-29-2022, 02:23 PM - Forum: General Coding Help - Replies (4)

this code makes the mouse move using mouse_event for certain angles, but the movement is very robotic, I would like to make the movement humanized, ho..... More

Print this item

  win32gui not transparent a color, just transparent all the wwindow
Posted by: DQT - Jul-29-2022, 01:40 PM - Forum: GUI - No Replies

Hello everyone.
I am trying to make a transparent back ground for a Gamemaker studio window,
I fill the background with color (255,255,128)

This is m..... More

Print this item

  UDP listener - why doesn't it work?
Posted by: Surmi - Jul-29-2022, 09:40 AM - Forum: Networking - Replies (6)

I am a beginner in Python programming.
I wrote a short program that decodes the data received on the UDP port and starts playing the mp3 file on the ..... More

Print this item

  How to automate file-uploading dialog in web automation?
Posted by: seanren - Jul-29-2022, 03:23 AM - Forum: Code sharing - Replies (1)

When generating web automation, you may come across a situation where you need to handle a dialog, such as saving or uploading or printing a file. The..... More

Print this item

  Bokeh help
Posted by: tangetjay - Jul-28-2022, 06:03 PM - Forum: General Coding Help - No Replies

Im trying to figure out how to make a graph with these modifications :

Create the following visualization (i.e. scatterplot) that shows the relations..... More

Print this item

Big Grin My backup is not complete - SSH Paramiko
Posted by: Braulio - Jul-28-2022, 05:12 PM - Forum: General Coding Help - Replies (2)

I have been working with paramiko to automate backups of my Cisco devices (Router & SW). I got SSH to work and I was able to get the configuration wit..... More


Attached Files

Thumbnail(s)
   
Print this item

  Upgrade makes Code Error
Posted by: kucingkembar - Jul-28-2022, 04:51 PM - Forum: General Coding Help - Replies (6)

i upgrade (Clean install) python from 3.9 to 3.10.5
and try this code
[python]import subprocess
subprocess.call("title Test pause & Pause")[/python..... More

Print this item

  Repeat request by else
Posted by: stsxbel - Jul-28-2022, 04:37 PM - Forum: General Coding Help - Replies (2)

Good afternoon, there is a code that removes parameters, the request is made 2 times and if the answers match, the data is written to the database. I ..... More

Print this item

  How to install Facebook Prohpet?
Posted by: SuperNinja3I3 - Jul-28-2022, 02:42 PM - Forum: Data Science - Replies (1)

I have tried everything I can, tried installing pystan, using pip and everything. Searched on Google and YouTube but still no luck... I am using Windo..... More

Print this item

  Api request redirect url
Posted by: pietervp - Jul-28-2022, 01:31 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,
I need some help with getting data from the website of my internet provider.
First I think I need to do a postrequest with my username and pa..... More

Print this item

  logic python
Posted by: JunkBoy - Jul-28-2022, 07:19 AM - Forum: General Coding Help - Replies (5)

Hey
I have this excel code i try to translate into python. I am getting some wrong answers and i need help to figure it out..
I have a dataset wher..... More

Print this item

  How to change UTC time to local time in Python DataFrame?
Posted by: SamKnight - Jul-28-2022, 05:15 AM - Forum: General Coding Help - Replies (2)

Help convert UTC time to local. Here is a getter function that outputs the time in UTC in columns.

[python]
def getminutedata(symbol, interval, l..... More

Print this item

  multithreading
Posted by: Hanyx - Jul-27-2022, 10:15 PM - Forum: General Coding Help - Replies (4)

multithreading in python

2 files

messages.txt with indefinite number of lines keys.txt with indefinite number of lines

example:

keys.txt h..... More

Print this item

  What am I doing wrong with this FFT?
Posted by: pyhill00 - Jul-27-2022, 09:50 PM - Forum: General Coding Help - Replies (6)

Hi everyone,
I am trying to just FFT four cosines but the results are weird.

This code below gives the following figures:

https://imgur.com/a/..... More

Print this item

  Plotting Feature Importance from ExtraTreesClassifier
Posted by: Led_Zeppelin - Jul-27-2022, 06:24 PM - Forum: General Coding Help - No Replies

The following python code gives all the features importance.

[python]
model = ExtraTreesClassifier()
model.fit(X, y)
print(model.feature_importa..... More


Attached Files

Thumbnail(s)
       
Print this item

  Error in if-then-else python code
Posted by: Led_Zeppelin - Jul-27-2022, 04:33 PM - Forum: General Coding Help - Replies (6)

When I run the program with the following final code, I get the error shown.

[error]
ValueError Traceback (most rec..... More

Print this item

  Multithreaded file transfer from multiple volumes
Posted by: skoobi - Jul-27-2022, 03:59 PM - Forum: General Coding Help - Replies (2)

I've written a script that copies .mp4 files from multiple volumes on the mac, which all works as intended, but am looking at improving the speeds and..... More

Print this item

  Creating a loop with dynamic variables instead of hardcoded values
Posted by: FugaziRocks - Jul-27-2022, 03:43 PM - Forum: General Coding Help - Replies (3)

The first step is creating a dataframe of usernames and their corresponding User IDs. You also need to login to an Instagram account for authenticatio..... More

Print this item

  pyPDF2 PDFMerger close pensding file
Posted by: japo85 - Jul-27-2022, 01:41 PM - Forum: General Coding Help - Replies (2)

Hello to everyone!
I have a problem using pyPDF2: I merge some pdf in a directory and I want to delete it after the job is done, but when I try to do..... More

Print this item

  How to extract specific data from .SRC (note pad file)
Posted by: Shinny_Shin - Jul-27-2022, 09:39 AM - Forum: General Coding Help - Replies (2)

Hi experts, I was tasked to build something to extract specific data from notepad within these 2 days and I am new to python and has never program any..... More

Print this item

  Writing into 2 text files from the same function
Posted by: paul18fr - Jul-27-2022, 09:29 AM - Forum: General Coding Help - Replies (4)

Hi

The following snippet seems to work, but I'm thinking I've been "lucky" and I'm wondering if it's the good way ? indeed neither f1 nor [i..... More

Print this item

Smile How we can prevent screen recording
Posted by: murad_ali - Jul-27-2022, 09:11 AM - Forum: General Coding Help - Replies (3)

After searching for hours, I have no choice left to ask some python gurus. I want to prevent a user to capture my app window.

I'm currently using [..... More

Print this item

  get data from excel and find max/min
Posted by: Timmy94 - Jul-27-2022, 07:14 AM - Forum: General Coding Help - Replies (1)

Hi,

Would it work to build a program were the user could take 30.000 different values (digits) from an excel file and enter it to a program to find..... More

Print this item

  Remove a space between a string and variable in print
Posted by: sie - Jul-27-2022, 05:58 AM - Forum: General Coding Help - Replies (5)

Hello, i was wondering on how can i remove the space between the variable color and a string ", I prefer red"
[python]
color = str.lower(input ("Ple..... More

Print this item

  two different doc strings
Posted by: Skaperen - Jul-27-2022, 01:40 AM - Forum: General Coding Help - Replies (2)

i have a case where two different functions for different purposes were re-factored in a way that they shared exactly identical code. so i am looking..... More

Print this item

  Average values on duplicate records
Posted by: chandramouliarun - Jul-26-2022, 09:52 PM - Forum: General Coding Help - Replies (1)

I have the following input table

| Custid | transactions | price | revenue |
| ------ | ------------ | ----- | ------- |
| 12456 | 2300 ..... More

Print this item

  Finding the price based on industry and number of transactions
Posted by: chandramouliarun - Jul-26-2022, 07:36 PM - Forum: General Coding Help - Replies (1)

1


I am trying to determine the price for my input table which has the specific industry type and the average monthly transactions based on the re..... More

Print this item

  Cant Access D: Drive
Posted by: kucingkembar - Jul-26-2022, 06:15 PM - Forum: General Coding Help - Replies (4)

Sorry for my bad English,
And sorry if I put in the wrong Section
my IDLE python cannot Access D:\ Drive py files,
when I open inside D:\ with rig..... More

Print this item

  Scrap table from webpage
Posted by: Luis_liverpool - Jul-26-2022, 03:54 PM - Forum: General Coding Help - Replies (5)

Hi All,

I wonder if it possible to scrap table from following web-page:

My desired table

I saw fe..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 5 hours ago RonR RonR GUI
  How Reliable Is Assignmen... 8 hours ago tobey12 tobey12 News and Disc...
  Another app idea - intera... Today, 07:07 decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575823
  Tutorial Requ... 497098
  Web Scraping ... 439832
  Newbie with P... 383532
  New Users Int... 365423
Most reputation
buran 581
snippsat 508
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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