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,527
» Latest member: Kumo_Koloo
» Forum threads: 38,661
» Forum posts: 175,189

Full Statistics

Online Users
There are currently 338 online users.
» 1 Member(s) | 330 Guest(s)
Bing, AOL, Google, Yandex, Apple, kshahzad1985

Latest Threads
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Kumo_Koloo
3 hours ago
» Replies: 0
» Views: 37
Qt Event Filtering
Forum: GUI
Last Post: Axel_Erfurt
6 hours ago
» Replies: 2
» Views: 72
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 7
» Views: 398
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 04:00 PM
» Replies: 3
» Views: 235
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 02:41 AM
» Replies: 5
» Views: 231
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 3,985
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 150
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 224
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 769
Cleaning my code to make ...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:20 AM
» Replies: 14
» Views: 4,345

 
  Extracting Data into Columns using pdfplumber
Posted by: arvin - Dec-13-2022, 06:35 AM - Forum: General Coding Help - Replies (17)

I have a pdf which has data in tabular format and has 6 columns but the columns are not separated by boundaries so when I extract the data using pdfpl..... More

Print this item

  Qcolor name pyside6
Posted by: PatM - Dec-13-2022, 03:08 AM - Forum: General Coding Help - Replies (2)

I have an error that works if I print but not if I try to use the value. I've tried everything I can think of but can't understand what is going wrong..... More

Print this item

  First python project
Posted by: PatM - Dec-13-2022, 12:09 AM - Forum: Code Review - Replies (2)

Ok my first completed Python/PySide6 program. Works fine but I would classify myself as a clumsy wannabe programmer at best so it's pretty ugly. I sti..... More

Print this item

  How to remove footer from PDF when extracting to text
Posted by: jh67 - Dec-12-2022, 04:25 PM - Forum: General Coding Help - Replies (3)

Hi,
I'm trying to take a footer out of a 550 page pdf and then extract everything left to a .txt file. The extraction is working but the footer is st..... More

Print this item

  remove partial duplicates from csv
Posted by: ledgreve - Dec-12-2022, 04:21 PM - Forum: General Coding Help - No Replies

Hello,

Firstly, I wish to mention and stress that I do not have a lot of experience with Python and programming in general.

[b]The situation:[..... More

Print this item

  Parsing CSVs...
Posted by: ChLenx79 - Dec-12-2022, 02:39 PM - Forum: General Coding Help - Replies (3)

Hi All,

hope you are all well!

Need a little nugde...

I have a CSV, within which a couple of lines look like this...

[font=Courier New]Com..... More

Print this item

  Please help me in regards to pyAutoGUI
Posted by: andrewtuk - Dec-12-2022, 01:24 PM - Forum: GUI - Replies (2)

Hi everyone

I am a newbie so bear with me, I watched a youtube video on how to install PYAutoGUI, I believe its installed it correctly but now I wa..... More

Print this item

  create new column based on condition
Posted by: arvin - Dec-12-2022, 11:32 AM - Forum: General Coding Help - Replies (12)

Hello
I want to create a new column that includes calculations based on existing columns.

[Image: gmg2jbM]

All rows have same ..... More

Print this item

  point of sale code problem
Posted by: dethnode - Dec-12-2022, 05:53 AM - Forum: Homework - Replies (3)

I am new to python and programming, but have enjoyed the semester learning what I have... However we were asked to follow a template and build a poin..... More

Print this item

  Prefs class: singleton or something else?
Posted by: PatM - Dec-12-2022, 04:52 AM - Forum: General Coding Help - Replies (7)

I've got a singleton class I'm using that works pretty well but I have several other classes (in different .py files) so I have to create it in every ..... More

Print this item

  Make unique id in vectorized way based on text data column with similarity scoring
Posted by: ill8 - Dec-12-2022, 03:22 AM - Forum: Data Science - No Replies

I have the following dataframe:

[python]d_test = {
'name' : ['South Beach', 'Dog', 'Bird', 'Ant', 'Big Dog', 'Beach', 'Dear', 'Cat', 'Fish', 'Dry..... More

Print this item

  Remove values for weekend in a panda series
Posted by: JaneTan - Dec-12-2022, 01:50 AM - Forum: General Coding Help - No Replies

Hi

I have a range of daily values. I want to remove the weekend (Sat + Sun) period and the accompanying values. How do I do so?

[python]df=pd.re..... More

Print this item

  Cube drawing
Posted by: freethrownucleus - Dec-11-2022, 11:48 PM - Forum: Game Development - Replies (51)

Hi, I need some help.
I need to draw a cube exactly like this ["attachment"] but on a condition I can manuevar on that cube model after.
If anyone cou..... More


Attached Files

Thumbnail(s)
   
Print this item

  Web project and running a .py file
Posted by: emont - Dec-11-2022, 11:15 PM - Forum: General Coding Help - No Replies

Hello Team,

I hope you are all fine; I was wondering if it is possible to run a python file (.py) from a website on a local machine and be able to ..... More

Print this item

  How to customize VS Code setting.json?
Posted by: NewPi - Dec-11-2022, 04:10 PM - Forum: Data Science - Replies (1)

Hey,

I want to customize the VS Code's settings.json, that matplotlib-functions will highlighted in the same color as built-in functions.

I wrot..... More

Print this item

  Excel file reading problem
Posted by: max70990 - Dec-11-2022, 02:30 PM - Forum: General Coding Help - Replies (1)

Hello to all,

the following program should indicate the average number of emissions by reading an excel file.
Excel file has to columns, one for ..... More

Print this item

  Coding problem portfolio grade
Posted by: max70990 - Dec-11-2022, 12:04 PM - Forum: General Coding Help - Replies (1)

   
   

Hello all, I’m a beginner and I’m looking to execute the following code. I have my associated excel file with ..... More

Print this item

  prime numbers with iterator and generator
Posted by: cametan_001 - Dec-11-2022, 07:13 AM - Forum: General Coding Help - Replies (8)

Hello.

Let's make an iterator like this:

def integers_starting_from(n):
    while True:
        yield n
        n += 1
..... More

Print this item

  What do * and / mean?
Posted by: cametan_001 - Dec-11-2022, 06:29 AM - Forum: General Coding Help - Replies (3)

Hello.

The reference of math.module says about the prod function like this:
..... More

Print this item

  Sort by month in a plot
Posted by: ph4n70m1988 - Dec-11-2022, 06:14 AM - Forum: Data Science - No Replies

I am using the following code to plot a graph.

[python]import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot ..... More

Print this item

  Getting NameError for a function that is defined
Posted by: JonWayn - Dec-11-2022, 04:09 AM - Forum: General Coding Help - Replies (2)

So far, it's a simple class, but I can't understand why I get a NameError for a function that exists in the class. The function is declared on line 15..... More

Print this item

  Homework Python unit test
Posted by: Paragoon2 - Dec-10-2022, 07:46 PM - Forum: Homework - Replies (4)

Hi i want to passed my unit test, but i do not know how
Can you help me please
[python]dictionary={'A':'.-', 'B':'-...',
'C':'-.-.', 'D..... More


Attached Files

.py   example.py (Size: 1.57 KB / Downloads: 209)
.py   example_test (1).py (Size: 2.46 KB / Downloads: 207)
Print this item

  Saving/editing cookies?
Posted by: rhubarbpieguy - Dec-10-2022, 01:58 PM - Forum: Web Scraping & Web Development - No Replies

I'm scraping a site using Selenium but I find it slow. However, I believe it's possible to retrieve cookie information using Selenium and then procee..... More

Print this item

  Transfer function
Posted by: victoriomariani - Dec-10-2022, 01:39 PM - Forum: General Coding Help - No Replies

Hello! I need help for write this code in python:

Ts = 1;   # sample time
z = tf('z',Ts)        # Variable Z
I tried [python]i..... More

Print this item

Question Take user input and split files using 7z in python
Posted by: askfriends - Dec-10-2022, 11:33 AM - Forum: General Coding Help - Replies (2)

I am new to all this, i have a python script and want to modify it a little bit but due to my weak basics i cant figure it out, hopefully u guys will ..... More


Attached Files

.py   zip.py (Size: 5.1 KB / Downloads: 248)
Print this item

  matrix multiplication term by term
Posted by: karolina - Dec-10-2022, 09:23 AM - Forum: General Coding Help - Replies (1)

I have the following numpy arrays:
A of size (MxK)
B of size (MxN)

How to multiply A and B to get a matrix of size (MxKxN)?

I tried with A * ..... More

Print this item

  validate large json file with millions of records in batches
Posted by: herobpv - Dec-10-2022, 03:53 AM - Forum: General Coding Help - Replies (3)

Greetings...

I'm working on validating large json file with millions of records in batches using jsonschema Draft202012Validator.

[python]impor..... More

Print this item

  Save multiple Parts of Bytearray to File ?
Posted by: lastyle - Dec-10-2022, 12:07 AM - Forum: General Coding Help - Replies (1)

Hi all.

i`ve got an fixed Bytearray which consist of a $40 Bytes FileHeader and $10 Bytes Packet Header followed by $2000 Bytes Raw data

From th..... More

Print this item

  Tensor flow for real-time shop shelf monitoring
Posted by: DragusPatrick - Dec-09-2022, 11:49 PM - Forum: News and Discussions - Replies (3)

Hello guys.
I need some advice regarding a little project.
Basically I want to monitoring in real time the quantity of products from a shelf and whe..... More

Print this item

  Inconsistent loop iteration behavior
Posted by: JonWayn - Dec-09-2022, 11:08 PM - Forum: General Coding Help - Replies (2)

I have some code that opens a website, submits search criteria, and loops through each resulting table row for the link to the details behind it. The ..... More

Print this item

  How to properly format rows and columns in excel data from parsed .txt blocks
Posted by: jh67 - Dec-09-2022, 08:00 PM - Forum: General Coding Help - Replies (7)

Hi. I'm trying to create an excel sheet using data made up from specific, recurring blocks of text in a .txt file and ignoring all other data in the f..... More


Attached Files

Thumbnail(s)
   
Print this item

  Tkinter messagebox
Posted by: WiPi - Dec-09-2022, 07:52 PM - Forum: General Coding Help - Replies (4)

Hi Guys,

I'm using the tkinter message box which works fine but I'm struggling to get code that checks if a messagebox is already open. So my working..... More

Print this item

  loading data
Posted by: astral_travel - Dec-09-2022, 07:50 PM - Forum: Data Science - Replies (7)

i'm trying to download stock data from yahoo! finance....
in anyway - i'm trying to have a symbol to download by loading the symbol/tickers from a fi..... More

Print this item

  extract lower/upper antitriangular matrix
Posted by: schniefen - Dec-09-2022, 05:43 PM - Forum: Homework - Replies (2)

In numpy you can use np.tril(x) to extract the lower triangular matrix of an array x. However, I am interested in ex..... More

Print this item

  WebScraping using Selenium library
Posted by: Korgik - Dec-09-2022, 09:51 AM - Forum: Web Scraping & Web Development - No Replies

Hi there, who knows how to properly process WebDriverWait TimeoutException? I am not sure of myself that I do everything right

Let's suppose that w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  processing nested json da... 3 hours ago Kumo_Koloo Kumo_Koloo Web Scraping ...
  Qt Event Filtering 6 hours ago deanhystad Axel_Erfurt GUI
  Convert .pdf to .txt 10 hours ago vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... Yesterday, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... Yesterday, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
  Data cleaning help 07-11, 07:18 ClimbAddict FrankBuckland General Codin...
Most views
  The best Prog... 572650
  Tutorial Requ... 485693
  Web Scraping ... 437114
  Newbie with P... 380047
  Thread remain... 351369
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 7351
deanhystad 6854
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kumo_Koloo Today
tomanadoveza Today
zaelizabethwift4333 Today
lessonanthony Today
sitedata Today

User Panel Messages

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