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,481
» Latest member: Anthonysof
» Forum threads: 38,579
» Forum posts: 174,812

Full Statistics

Online Users
There are currently 497 online users.
» 1 Member(s) | 490 Guest(s)
Yandex, Bing, Applebot, Google, Mojeek, deanhystad

Latest Threads
How to attach images to a...
Forum: Board
Last Post: sethmike9
Yesterday, 04:08 AM
» Replies: 6
» Views: 8,875
How To Attach data Files
Forum: Board
Last Post: sethmike9
Yesterday, 04:05 AM
» Replies: 3
» Views: 4,142
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 363
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 163
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 281
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 220
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,393
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 165
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 498
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,352

 
  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: 200)
.py   example_test (1).py (Size: 2.46 KB / Downloads: 198)
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: 238)
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

  Cubic interpolation in Pandas raises ValueError: The number of derivatives at boundar
Posted by: JaneTan - Dec-09-2022, 06:27 AM - Forum: Data Science - Replies (2)

Using the below weekly dataset, I want to resample to monthly data with cubic conversion.

Period Values
20-Jan-89 3
27-Jan-89 4
3-Feb-89 2
10-F..... More

Print this item

  Python Resampling: How do I obtain the value of the last week of the month?
Posted by: JaneTan - Dec-09-2022, 05:23 AM - Forum: General Coding Help - Replies (2)

Hi

I want to resample to obtain all the values of the last week of the month. However, there are some weeks that overlap between 2 months. For Pyth..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to attach images to a... Yesterday, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files Yesterday, 04:05 Talch sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
Most views
  The best Prog... 565794
  Tutorial Requ... 458265
  Web Scraping ... 430743
  Newbie with P... 367303
  Thread remain... 339507
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Anthonysof Yesterday
whitecat25 Yesterday
livecricket Yesterday
reactnativeexpert Yesterday
sethmike9 Yesterday

User Panel Messages

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