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

Full Statistics

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

Latest Threads
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
30 minutes ago
» Replies: 5
» Views: 9,846
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 4
» Views: 101
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 126
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 69
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 118
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,284
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 92
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 749
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 136

 
  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

Question Python Download URL
Posted by: mengelsen - Jul-26-2022, 02:45 PM - Forum: News and Discussions - Replies (1)

I am trying to automate software deployment using our MDM solution. Does Python.org have a download URL that would allow me to consistently pull the l..... More

Print this item

  How to write a part of powershell command as a variable?
Posted by: ilknurg - Jul-26-2022, 11:09 AM - Forum: General Coding Help - Replies (2)

I have a powershell command to run it with winrm.

[python] result = session.run_ps('get-wmiobject -namespace root\SecurityCenter2 -computernam..... More

Print this item

  small code for sampel asn1ate
Posted by: borys - Jul-26-2022, 10:48 AM - Forum: General Coding Help - No Replies

Hi I'm a fresh in python, could someone help me to write a code for asn1 file parser I've already generated class for such ASNdecoder, what I need is ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Lottery generator (beginn... 30 minutes ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 2 hours ago eedjsa bowlofred General Codin...
  [split] How to ask Smart ... 12-25, 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... 580330
  Tutorial Requ... 518798
  Web Scraping ... 442753
  Newbie with P... 386937
  New Users Int... 386020
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
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Michaelhauct Yesterday
eedjsa Yesterday
byanfrances6176 Yesterday
Amowtonyl Yesterday
sofiadavis1840 Yesterday

User Panel Messages

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