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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 3
» Views: 71
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
7 hours ago
» Replies: 3
» Views: 90
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 63
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 97
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,018
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,550
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 178
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,192
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,437

 
  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

  Transforming Employee Roster into a Headcount Calendar
Posted by: Michaperki - Jul-25-2022, 07:00 PM - Forum: Data Science - No Replies

Hello, I've started a new job recently and one of my first tasks as a BI analyst is to create a regularly updating dashboard showing employee headcoun..... More


Attached Files

.xlsx   Sample_Employee_Headcount_Data.xlsx (Size: 12.06 KB / Downloads: 1)
Print this item

  removing spaces
Posted by: msaiahnl - Jul-25-2022, 02:56 PM - Forum: General Coding Help - Replies (2)

hello I have to calculate the arithmetic mean in the text (the number of letters divided by the number of sentences). The problem is that when countin..... More

Print this item

  what will be the best way to find data in txt file?
Posted by: korenron - Jul-25-2022, 09:46 AM - Forum: General Coding Help - Replies (2)

Hello,
I have created a "config" file for my code with all kind of data inside , for the code to run and use
the config.txt is :
[python]IP = 10.0..... More

Print this item

  looking fo documentation for module files
Posted by: Skaperen - Jul-24-2022, 10:25 PM - Forum: News and Discussions - Replies (39)

i'm looking for documentation that covers where to store a file to make it generally available to all Python scripts run in a typical way by any user ..... More

Print this item

  home automation using python
Posted by: barryjo - Jul-24-2022, 03:42 PM - Forum: General Coding Help - Replies (1)

I would like to be able to control my home automation switches, lights, and etc using python. Essentially, I want to do what Alexa and Google home doe..... More

Print this item

  Troubleshooting with PySpy
Posted by: Positron79 - Jul-24-2022, 03:14 PM - Forum: General Coding Help - No Replies

Hello all,

I'm running a script that grabs data from a weather device, and converts it to mqtt and dumps it to my broker where I can then use the dat..... More

Print this item

  IndexError: list index out of range
Posted by: dolac - Jul-24-2022, 02:44 PM - Forum: General Coding Help - Replies (4)

Hello, I need help, I had a goal to make a bot that would work with a database on SQLITE3, everything was connected, but in the process of interacting..... More


Attached Files

.zip   database.zip (Size: 403 bytes / Downloads: 307)
.py   main.py (Size: 723 bytes / Downloads: 272)
.py   db.py (Size: 1.01 KB / Downloads: 280)
Print this item

  Find numbers using Regex
Posted by: giddyhead - Jul-24-2022, 04:41 AM - Forum: General Coding Help - Replies (18)

Hello,

I have an regex issues as I am seeking to find only the numbers that are attached to words:
For example:
1the
5one
5529care
30over

..... More

Print this item

  Issue in changing data format (2 bytes) into a 16 bit data.
Posted by: GiggsB - Jul-23-2022, 06:42 PM - Forum: General Coding Help - Replies (11)

UPDATED THE QUESTION

Hello,

I am writing this python code for Raspberry Pi (rpi) where RPi is connected to a microcontroller (mcu). The mcu i..... More

Print this item

  FFT - frequency shifted
Posted by: frohr - Jul-23-2022, 05:15 PM - Forum: General Coding Help - No Replies

Hi,
I have velocity data calculated from acceleration and I want to make FFT. Data seems ok (checked by function generator).
But all the time I have..... More

Print this item

  I use switch_to.window, how to keep edge at a minimized ?
Posted by: wuyi - Jul-23-2022, 01:57 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm going to run edge in a minimized window, not headless. However, running the following code restores the window to its original state and the windo..... More

Print this item

Question Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters
Posted by: Dragiev - Jul-23-2022, 08:45 AM - Forum: General Coding Help - Replies (6)

Hello, everybody,

by the title of the subject you can guess I am brand new to Python and coding in general. I've tried learning it in the past but ..... More

Print this item

  converting to int
Posted by: Skaperen - Jul-23-2022, 06:45 AM - Forum: General Coding Help - Replies (11)

i have a string (s) that may have other stuff append to it, that i want to convert to an int with int(s,0). but i don't know how man..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 4 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 7 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578672
  Tutorial Requ... 509060
  Web Scraping ... 441834
  Newbie with P... 385782
  New Users Int... 375018
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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