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,244
» Latest member: thebigback
» Forum threads: 38,778
» Forum posts: 175,803

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 41 Guest(s)
Google, AOL, Apple, Google Image, racingsubby

Latest Threads
Backward compatibility qu...
Forum: News and Discussions
Last Post: yutaozhou
5 minutes ago
» Replies: 4
» Views: 152
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
7 minutes ago
» Replies: 1
» Views: 13
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
1 hour ago
» Replies: 6
» Views: 159
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:37 AM
» Replies: 1
» Views: 67
Data Science
Forum: Data Science
Last Post: mamta25
Today, 05:27 AM
» Replies: 3
» Views: 2,584
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 157
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 148
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,463
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,387
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,587

 
  Formatting to output file
Posted by: Mark17 - Jan-13-2022, 08:08 PM - Forum: General Coding Help - Replies (2)

If I wanted to format decimal places in a print line, then I could do:

[Python]
s = 37.3829
print('This is an example of formatting to 2 decimal ..... More

Print this item

  Reading Excel file and use a wildcard in file name and sheet name
Posted by: randolphoralph - Jan-13-2022, 05:20 PM - Forum: General Coding Help - Replies (6)

I have a simple script that reads an excel file and captures certain columns and saves to a new Excel spreadsheet. I run this script each day and befo..... More

Print this item

  Python Based ETL Using Pandas
Posted by: HyperSpeed - Jan-13-2022, 04:16 PM - Forum: Data Science - No Replies

Hello all,

I am currently using a Python based ETL which uses Pandas.

I won't post all my code here because most of it isn't relevant, but I wil..... More

Print this item

Question Help to find the largest int number in a file directory
Posted by: SalzmannNicholas - Jan-13-2022, 03:38 PM - Forum: General Coding Help - Replies (1)

Hi, i am a little bit newbie in programming python. I have this problem:

I want to python give me the max value (integer) of a directory folder, th..... More

Print this item

  Python Code Review and Challenge
Posted by: cpatte7372 - Jan-13-2022, 03:01 PM - Forum: Homework - Replies (2)

Hello Community,

I have been given a challenge to review the following PySpark code and comment on any areas where I see there are errors.

While..... More

Print this item

  pyw IDLE =/= Non IDLE
Posted by: kucingkembar - Jan-13-2022, 12:10 AM - Forum: General Coding Help - Replies (3)

hi, is there any "special treatment" for .pyw?
i don't know why if I run pyw file via IDLE, then press F5, the program run normal,
but
when run like e..... More

Print this item

  Help with poorly formatted excel data
Posted by: armitron121 - Jan-13-2022, 12:00 AM - Forum: Data Science - Replies (1)

Hello - I have an excel file that is used to visually track and modify a schedule for multiple manufacturing lines. My goal is to write a python scrip..... More

Print this item

  Trying out the parsing/reading of emails from my outlook
Posted by: cubangt - Jan-12-2022, 08:59 PM - Forum: General Coding Help - No Replies

I'm dabbling in reading emails from python and have the following code just to get my feet wet in doing so, but wanted to see how i can look for certa..... More

Print this item

  How to make for loop display on 1 Line
Posted by: Extra - Jan-12-2022, 07:43 PM - Forum: General Coding Help - Replies (3)

Hello,

I have this auto typing text animation code

[python]
response = "Hello there..."
print ("Baxter: ")
for i in respons..... More

Print this item

  A Game Idea
Posted by: Prithak - Jan-12-2022, 05:38 PM - Forum: Bar - No Replies

So, I'm making a game, and here's the concept I came up with for it. I'd appreciate feedback for it, for now I don't have anything to show you because..... More

Print this item

  Padlock of alphabetical strings
Posted by: Men - Jan-12-2022, 05:32 PM - Forum: Homework - Replies (11)

Hi guys,

This actually is not my homework assignment. It's someone else's that I thought to try and see if I could get it running.
I've coded it t..... More

Print this item

  How to make IMG + FILTER object convertable for glTexImage2D
Posted by: buzzdarkyear - Jan-12-2022, 05:14 PM - Forum: General Coding Help - No Replies

I'm using a tool where an image is adjusted with a zoom function. Because of this it changes into a object which make me not able to apply glTextImage..... More

Print this item

  Pyzbar - skewed barcodes reading + PatchT
Posted by: wvanoeveren - Jan-12-2022, 04:52 PM - Forum: General Coding Help - No Replies

Hello,

I'm currently using pyzbar to read barcodes on images. it works good as long as they are not skewed. But from the moment they are slightly s..... More


Attached Files

Thumbnail(s)
   
Print this item

  Adding a Wake word to my Script
Posted by: Extra - Jan-12-2022, 04:34 PM - Forum: General Coding Help - Replies (9)

Hello,

I am trying to add a wake word to my voice assistant script but I don't know where to add it or how to get it working properly.

I have c..... More

Print this item

  gspread - applying ValueRenderOption to a range of cells
Posted by: dwassner - Jan-12-2022, 03:05 PM - Forum: General Coding Help - No Replies

I am able to successfully update the cell values of the target Google Sheet, and am successfully changing a specific range of cells to become an activ..... More

Print this item

  glTexImage2D is having problem loading img [update]
Posted by: buzzdarkyear - Jan-12-2022, 02:41 PM - Forum: General Coding Help - No Replies

I'm trying to upload a image trough glTexImage2D (line 125) so I can output it on a broadcasting network (Spout). I've added some filters to the img a..... More

Print this item

  UnicodeEncodeError caused by print when program runs from Popen
Posted by: SheeppOSU - Jan-12-2022, 07:46 AM - Forum: General Coding Help - Replies (5)

I am running a python program from another python program using subprocess.Popen, specifically like this [inline]subprocess.Popen(['python', self.path..... More

Print this item

  How can I create a new tag with PyQt5?
Posted by: nickzsche - Jan-12-2022, 07:22 AM - Forum: GUI - Replies (2)

Hello, I want to see the data I entered with PyQt5 by creating a new label. For example, if I gave 5 data, it should create 5 labels, if I gave 100 da..... More

Print this item

  please looking for typo in my code (solution please)
Posted by: jamie_01 - Jan-12-2022, 06:42 AM - Forum: General Coding Help - Replies (1)

[code]
#!/usr/bin/python3

class LaserWeaponArmory(Scene):

def enter(self):
print(dedent("""
You do a dive roll into t..... More

Print this item

  Slicing a 2 dimensional array
Posted by: Scott - Jan-12-2022, 06:16 AM - Forum: General Coding Help - Replies (2)

Hi guys,

I have the array below:

[python][[1.6727031 1.5464988 1.6836944 1.8492563 1.968533 2.2368639 2.6653275
2.7314425 2.8197284 2.969603..... More

Print this item

  ord()
Posted by: Men - Jan-12-2022, 04:38 AM - Forum: General Coding Help - Replies (2)

Hi,

Quick question. coding in python...How do you continuously decrease an ord value until it reaches an n value?

for example: i have a ord valu..... More

Print this item

  Python executable Script (Wrapper)
Posted by: Hwang - Jan-12-2022, 01:05 AM - Forum: General Coding Help - Replies (2)

I need help creating an executable wrapper file/function in python to which i can parse parameter variable , that will be consumed by methods/function..... More

Print this item

  How to receive webcam capture on spout?
Posted by: buzzdarkyear - Jan-12-2022, 12:49 AM - Forum: General Coding Help - Replies (2)

I'm trying to let Spout receive a webcam capture done with OpenCV but I keep getting errors. How can I approach this problem in the best way?

[erro..... More

Print this item

  how to split socket data onto multiple clients for separate processing
Posted by: ConcealedFox70 - Jan-11-2022, 08:26 PM - Forum: Networking - No Replies

i am controlling 4 stepper motors as a mecanum robot in python socket to esp8266 arduino with a limited amount of pins. i would like to add a pair of ..... More

Print this item

  PDF Extract using CSV values
Posted by: atomxkai - Jan-11-2022, 07:03 PM - Forum: General Coding Help - Replies (5)

Hello, need help on how to read from CSV file with multiple values instead of manual input?

Thank you.

[python]from PyPDF2 import PdfFileReader,..... More

Print this item

  Remove empty keys in a python list
Posted by: python_student - Jan-11-2022, 05:18 PM - Forum: General Coding Help - Replies (7)

I have a list of dictionaries and in case if some dictionary has empty key I want to remove it completely from the list. In my example,
I need to rem..... More

Print this item

Sad Want to Save Print output in csv file
Posted by: Rasedul - Jan-11-2022, 02:50 PM - Forum: General Coding Help - Replies (5)

I want to save this print output to CSV file but this code is not working, how can I save this output to CSV?

[python]import csv

for x in range(..... More

Print this item

  Can't get tkinter database aware cascading comboboxes to update properly
Posted by: dford - Jan-11-2022, 02:13 PM - Forum: GUI - Replies (6)

I'm running into a tkinter situation that I cannot find a resolution for as of yet. I've got three database linked comboboxes that I would like to ..... More

Print this item

  How to crop eyes/nose/mouth in the face only? [OpenCV]
Posted by: buzzdarkyear - Jan-11-2022, 01:41 PM - Forum: General Coding Help - No Replies

When I crop only face it does the job, but when I want to crop eyes, nose, mouth that are detected in the face it doesn't.

[python]gray = cv2.cvtCo..... More

Print this item

  How to zoom on/follow MOUTH in FACE? (OPENCV Face Detection)
Posted by: buzzdarkyear - Jan-10-2022, 10:56 PM - Forum: General Coding Help - Replies (2)

When I only detect the face the camera zoom on the face and follows it. But when I want to detect & zoom/follow the mouth it doesn't.

Mouth detecti..... More

Print this item

  Matching Exact String(s)
Posted by: Extra - Jan-10-2022, 10:43 PM - Forum: General Coding Help - Replies (4)

Hello,

So I'm working on an A.I assistant and I got a good chunk of it done. It can display the news, weather, time, do calculations and google sea..... More

Print this item

  Cryptic Error with import statement
Posted by: Led_Zeppelin - Jan-10-2022, 07:31 PM - Forum: General Coding Help - Replies (2)

In the following import statements there is an error

[code]
from utils.create_features_utils import *
import pandas as pd
import numpy as np
fr..... More

Print this item

  Cannot import google
Posted by: KEIKAS - Jan-10-2022, 06:25 PM - Forum: General Coding Help - Replies (2)

I have pip installed everything I need. My goal is to get that service to import.
This is my code:
[python]from googleapiclient.http import MediaFil..... More

Print this item

  PANDAS: DataFrame | Saving the wrong value
Posted by: moduki1 - Jan-10-2022, 04:42 PM - Forum: Data Science - No Replies

I have a column called 'cnpjfornecedor' the original value is 08.482.581/0001-57 i need to remove the special caracters to have 08482581000157

i'm ..... More

Print this item

  find 2 largest equal numbers
Posted by: Frankduc - Jan-10-2022, 03:16 PM - Forum: General Coding Help - Replies (13)

Hello,

Here's a basic question.

[python]a = 154
b = 42
d = 0
f = 0

for i in range(1,a):

d = round(a / i)

print(d)
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Backward compatibility qu... 5 minutes ago yutaozhou yutaozhou News and Disc...
  Help with Serial.write in... 7 minutes ago racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 1 hour ago tsgiannis Gribouillis GUI
  [split] print two differe... Today, 05:37 Reema Gribouillis General Codin...
  Data Science Today, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 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...
Most views
  The best Prog... 578747
  Tutorial Requ... 509511
  Web Scraping ... 441879
  Newbie with P... 385847
  New Users Int... 375463
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+ 12103
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
thebigback Today
dimitriwati Today
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today

User Panel Messages

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