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,396
» Latest member: pizofreude
» Forum threads: 38,822
» Forum posts: 176,025

Full Statistics

Online Users
There are currently 32 online users.
» 1 Member(s) | 27 Guest(s)
Apple, Google, Bing, deanhystad

Latest Threads
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
8 hours ago
» Replies: 1
» Views: 4,573
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 4
» Views: 142
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
9 hours ago
» Replies: 7
» Views: 3,579
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 139
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 278
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,093
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,941
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 171
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 101
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 171

 
  Class Method to Calculate Age Doesn't Work
Posted by: gdbengo - Oct-30-2021, 10:45 PM - Forum: General Coding Help - Replies (1)

Hello Everyone,

I'm new to Python programming, I need your help to fixing a code I'm working. It's a class that has a method that calculate a perso..... More

Print this item

  Beginner Coding Help
Posted by: calpro - Oct-30-2021, 01:29 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm brand new to Python and don't understand what I've done wrong here, could someone please enlighten me?
___________________________________..... More

Print this item

  Programming robots using Python
Posted by: OscarBoots - Oct-30-2021, 11:43 AM - Forum: General Coding Help - Replies (5)

Hi Forum,
I hope I'm in the right part of the forum to post my question, pls correct me if I'm wrong.

I'm learning Python and I want to buy a product..... More

Print this item

  How can i fix json.decoder.JSONDecodeError ?
Posted by: JgKSuperstar - Oct-30-2021, 11:04 AM - Forum: General Coding Help - Replies (9)

Hello, how do I solve this problem?

[python]import json

def write_json(new_date, filename='data.json'):
try:

with open(f..... More

Print this item

  mongodb beatles data scraping question
Posted by: darter - Oct-30-2021, 12:02 AM - Forum: Data Science - No Replies

As a hobbyist I wanted to scrape data and store it in mongodb and that has worked fine. My focus was to get data related to each Beatles song and so I..... More

Print this item

  Lost Module
Posted by: standenman - Oct-29-2021, 07:52 PM - Forum: General Coding Help - Replies (10)

I install a package via pip
"pip install pypdf2". I see it install. I then try to import it "import pydf2". It complains about "import" as an inva..... More

Print this item

  List comprehension:
Posted by: paul18fr - Oct-29-2021, 04:56 PM - Forum: Data Science - Replies (1)

Hi

I'm trying to figure out how a list comprehesion works from a "memory" point of view?

I mean that append corresponds to a dynamic allo..... More

Print this item

  Controller Buzzer as Distance Decreases
Posted by: barkster - Oct-29-2021, 01:25 PM - Forum: General Coding Help - Replies (6)

I have a raspberry pi and am trying to simulate something similar to backup sensors on a car. I have some ultrasonic sensors that turn on buzzer when ..... More

Print this item

  How to use pexpect in python?
Posted by: tiho_bg - Oct-29-2021, 01:19 PM - Forum: General Coding Help - Replies (1)

I would like to control a robot using pexpect. Here is my code:

[python]#!/usr/bin/env python

from pexpect import pxssh
import pexpect

s = p..... More

Print this item

  Find the highest value of a list
Posted by: Menthix - Oct-29-2021, 10:25 AM - Forum: General Coding Help - Replies (4)

Hello,
I'm trying to build a small program to find the highest value of a list. I tried this :

[python]def nb_max(L):
maxi = L[0]
for x ..... More

Print this item

  Python BeautifulSoup gives unusable text?
Posted by: dggo666 - Oct-29-2021, 05:12 AM - Forum: Web Scraping & Web Development - No Replies

Hello, everyone
I apologize for my english.
I have a Python script that extracts the complete text from a domain and every single subdomain. So then..... More


Attached Files

.py   webscraper.py (Size: 2.3 KB / Downloads: 353)
Print this item

  Tiny Linux Development Kit
Posted by: Larz60+ - Oct-29-2021, 03:21 AM - Forum: News and Discussions - No Replies

Seeedstudio Quantum Tiny Linux Development Kit – With SoM and Expansion Board

This is an interesting product for anyone who wants to develop a low ..... More

Print this item

  Sorting list from FTP by Date
Posted by: lastyle - Oct-28-2021, 09:03 PM - Forum: Data Science - Replies (2)

Hi all,

i am parsing a ftp f.retrlines('MLSD', ls.append) which creates me a list that contains Fileinfo like the following

#type=file;size=..... More

Print this item

  OCR in python to this image
Posted by: guy7200 - Oct-28-2021, 08:10 PM - Forum: General Coding Help - No Replies

i try to do OCR in python to this image (the number inside can change)
i try everything
tesseract
EasyOCR
but every method doing a lot of mistake[..... More


Attached Files

Thumbnail(s)
   
Print this item

Question email code works in 2.7 but not in 3
Posted by: micksulley - Oct-28-2021, 03:59 PM - Forum: General Coding Help - Replies (3)

Running Python 3.8.10 and 2.7.18 under Mint 20.2
I am trying to generate an email on my IONOS 1 & 1 domain using this code
[python]import smtplib
M..... More

Print this item

Photo Moving 2 photos from each subfolder to another folder
Posted by: Blacklonewolf - Oct-28-2021, 02:02 PM - Forum: General Coding Help - Replies (1)

Hello
Let me start by saying that I'm beginner in Python, so I'm hoping for ready/big help
I have a problem with the following code, which I need to..... More

Print this item

  cut string after tow known chars?
Posted by: korenron - Oct-28-2021, 10:00 AM - Forum: General Coding Help - Replies (3)

Hello ,
wanted to know if there is a smart way to do the following:

this is my string
String1 = "data1!data2!data3!data4!data5.......!datax"
..... More

Print this item

  Error when using Watchdog and Qt to keep open a Queue before and after sending first
Posted by: pyhill00 - Oct-28-2021, 09:10 AM - Forum: General Coding Help - No Replies

Watchdog is being used to send new .hdf5 files to a different program for use. The problem is that using Queue only allows one file to be sent and..... More

Print this item

  Sudoku Solver, please help to solve a problem.
Posted by: AdithyaR - Oct-28-2021, 06:41 AM - Forum: General Coding Help - Replies (5)

Guys, I am trying to make a sudoku solver program which solves sudokus. I am inputting each cell values in the program itself inside a dictionary. The..... More

Print this item

  Plotting Help Needed
Posted by: test_majestic - Oct-28-2021, 12:44 AM - Forum: General Coding Help - No Replies

Hey everyone, so I'm generating nxn matrices where n ranges from 1 to 100 and I have made it such that the matrix is symmetric. I'm computing the aver..... More

Print this item

  Fast way of inspecting web pages for paywalls
Posted by: aadriyu - Oct-27-2021, 08:14 PM - Forum: Web Scraping & Web Development - No Replies

It might seem a silly question but I am new to programming.
I have a long list of urls and I need to see whether the articles on those webpages are f..... More

Print this item

  What's wrong with these codes?
Posted by: bouraque7878 - Oct-27-2021, 07:23 PM - Forum: General Coding Help - Replies (4)

It doesn't work. What's wrong? [python]
list1 = [1, 1]
i = 2
while True:
terim = list1[i - 1] + list1[i - 2]
list1.append(terim)
ter..... More

Print this item

  MAC Python IDLE issue
Posted by: shadow12 - Oct-27-2021, 05:09 PM - Forum: General Coding Help - Replies (4)

Hello, whenever I have IDLE open, I can right click a python script in finder and open with IDLE. However, when IDLE is not already open, I get an err..... More

Print this item

  issue displaying summary of whole keras CNN model on TensorFlow with python
Posted by: Afrodizzyjack - Oct-27-2021, 04:07 PM - Forum: Data Science - No Replies

I have been trying to view the filters and features maps of a trained image classification system, using the 'mobilenet v2' model with 'imagenet' weig..... More

Print this item

  How to map two data frames based on multiple condition
Posted by: SriRajesh - Oct-27-2021, 02:43 PM - Forum: General Coding Help - No Replies

Hi,
I want to map df1 and grep the value from df2 if df1 column1(i.e ID1) value is between df2 column1(ID1) and column2(ID2). I sue below code, but I..... More

Print this item

  Coordinate conversion
Posted by: erdemath - Oct-27-2021, 01:28 PM - Forum: Data Science - Replies (8)

How would you define a proper Fourier domain in python? By converting cartesian (x,y) coordinates into polar coordinates (r,\phi)?

Print this item

  Process multiple pdf files
Posted by: Spartan314 - Oct-27-2021, 01:26 PM - Forum: General Coding Help - Replies (1)

I'd love for somebody in the know to point me in the right direction on something.

From a list of file names in an Excel workbook I want my Python ..... More

Print this item

  Sending Attachments via smtplib [SOLVED]
Posted by: AlphaInc - Oct-27-2021, 12:37 PM - Forum: General Coding Help - Replies (3)

Hello everybody,

I have an E-Mail script written in python which sends notifications to my personal mail account.
Now I want to extend on that by ..... More

Print this item

  .....
Posted by: Rafa - Oct-27-2021, 10:44 AM - Forum: General Coding Help - No Replies

.....

Print this item

  Exporting dataframes to excel without loosing datetime format
Posted by: Rafa - Oct-27-2021, 10:42 AM - Forum: General Coding Help - No Replies

I want to export to excel a DataFrame in which the index is formated in quarters (2019-Q1,2019-Q2...). However, when I export it to excel (through Exc..... More

Print this item

  Stuck in functional proggaming haze
Posted by: hammer - Oct-27-2021, 01:20 AM - Forum: General Coding Help - Replies (2)

New to actually programing in OOP. Looking for experienced guidance on making a decision on best practice on taking info from SQLite3, using info (tex..... More

Print this item

  compression module for lz4?
Posted by: Skaperen - Oct-27-2021, 12:06 AM - Forum: General Coding Help - Replies (1)

i would like to know if there is a module for decompressing the lz4 compression found in the Debian/Ubuntu "[font=Courier New][b]..... More

Print this item

  Python Coding
Posted by: kshtriyadin1994 - Oct-26-2021, 11:10 PM - Forum: General Coding Help - Replies (4)

Need Help in python code for below conversion:

"()" => "00"
")(" => "-11"
"((a) => "10a0"
"(a(b)c) => "0a0b0c"
"()a((((" => "00a1111"

Print this item

  Review on (new) Python module: Function but Lazy Python
Posted by: jeertmans - Oct-26-2021, 10:18 PM - Forum: Code Review - Replies (3)

Hello everyone, I have recently been working on a Python module and I wanted to have some feedback on it.

I really enjoy Python's syntax, except fo..... More

Print this item

  Join dataframes... So simple but I can't work it out!
Posted by: snakes - Oct-26-2021, 09:28 PM - Forum: General Coding Help - Replies (1)

I have a dataframe which contains NaNs. I've copied the rows with NaNs and used a DecisionTreeRegressor to predict the missing data. Now, I want to jo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Struggles I Faced While E... 8 hours ago baffa_dbt padma121 Code Review
  Willing to pay for help w... 8 hours ago braillescribe noisefloor General Codin...
  Create dataframe from the... 9 hours ago Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
Most views
  The best Prog... 580404
  Tutorial Requ... 519438
  Web Scraping ... 442776
  Newbie with P... 386977
  New Users Int... 386455
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
pizofreude Today
RockHound_Z12 Today
braillescribe Yesterday
aurelio12282025 Yesterday
bejaminmaarleyo1374 Yesterday

User Panel Messages

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