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 41 online users.
» 0 Member(s) | 37 Guest(s)
Applebot, Google

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

 
  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: 227)
.py   example_test (1).py (Size: 2.46 KB / Downloads: 225)
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: 268)
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

  [split] How Can get the graph library?
Posted by: marceldcv - Dec-08-2022, 09:52 PM - Forum: News and Discussions - Replies (1)

Hello Man, How Can get the graph library? I can't find the library.
Thanks

Print this item

Heart Python for frontend !
Posted by: SpongeB0B - Dec-08-2022, 07:45 PM - Forum: News and Discussions - Replies (9)

Hi,

While I was looking how to use Python for the front-end
I discover a great suggestion on the Mozilla "ideas box" aka connect, so I'll share i..... More

Print this item

  Build and deploy Python apps for the cloud
Posted by: Rk2 - Dec-08-2022, 06:30 PM - Forum: Tutorial Requests and Submissions - No Replies

This tutorial walks a developer step-by-step through creating a REST API and deploying it to AWS, GCP or Azure with the Nitric Framework.

The develop..... More

Print this item

  Web Scraping Stuff
Posted by: Korgik - Dec-08-2022, 12:53 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi there Big Grin

What kind of stuff do you usually use for web scraping and parsing? I am just a beginner in this area and I would like to kn..... More

Print this item

  Webscraping returning empty table
Posted by: Buuuwq - Dec-08-2022, 12:39 PM - Forum: Web Scraping & Web Development - No Replies

Hi, I'm trying to extract a table from a webpage and have tried a number of alternatives, but the table always seems to remain empty.

Two of what I t..... More


Attached Files

Thumbnail(s)
   
Print this item

  python pandas sql table with header
Posted by: mg24 - Dec-08-2022, 09:21 AM - Forum: General Coding Help - Replies (3)

Hi Team,

please help me first time using pandas for extracting sql table with headers into csv file.

how to write below header line to csv.
write..... More

Print this item

  Impute 1 if previous row of 'days' column is between 0 & 7
Posted by: JaneTan - Dec-08-2022, 05:17 AM - Forum: Data Science - Replies (2)

Hi,

Basically, I want to impute 1 in 'Check' column if the previous row of 'days' is >=0 and <7.
I wrote the below code, but it only looks at curr..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 2 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 4 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... 578667
  Tutorial Requ... 509038
  Web Scraping ... 441833
  Newbie with P... 385779
  New Users Int... 375007
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