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,470
» Latest member: ishaD
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 707 online users.
» 0 Member(s) | 699 Guest(s)
Bing, Google, Yandex, Facebook, Baidu

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 192
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 144
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,327
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 112
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 392
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,196
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 367
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 437
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 994
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 244

 
  Pytrends related querie & suggestion limitations
Posted by: cmg15326 - May-02-2023, 03:47 PM - Forum: General Coding Help - No Replies

Hey! So I learned that Pytrends has its limits regarding keywords that you can search and filter for. I also learned that you can bypass that with mul..... More

Print this item

  Read 2 Value with bleak via BLE notify from ESP32
Posted by: Nietzsche - May-02-2023, 12:16 PM - Forum: General Coding Help - Replies (7)

Hello, when I read out 2 characteristics via Bleak and BLE, via the command:

[python]async def notification_handler(sender, data, callback):
spo..... More

Print this item

  Initiating an attribute in a class __init__: question
Posted by: billykid999 - May-02-2023, 04:09 AM - Forum: General Coding Help - Replies (8)

When I write my below code everything works fine:
[python]class HardwareMaintenance:
info_dict = dict()
def __init__(self):
pass
..... More

Print this item

  openpyxl insert picture problem
Posted by: cools0607 - May-02-2023, 01:43 AM - Forum: General Coding Help - Replies (2)

I want to insert a picture into the Excel cell.
The image size needs to fit the cell (even the merged cell) border automatically.
I can find an exa..... More

Print this item

  How do I call sys.argv list inside a function, from the CLI?
Posted by: billykid999 - May-01-2023, 11:38 PM - Forum: General Coding Help - Replies (3)

So I wrote some code and it works fine but I am having issues passing in classes/functions from the command line.

Here's the code:
[python]
impor..... More

Print this item

  J2534 Python Can Bus merging
Posted by: natezoom - May-01-2023, 10:35 PM - Forum: General Coding Help - No Replies

I have a korlan usb2can device and I also have a j2534 device(programs use the dll to connect). I would like to connect both of these devices "togethe..... More

Print this item

  Pulling Specifics Words/Numbers from String
Posted by: bigpapa - May-01-2023, 06:43 PM - Forum: General Coding Help - Replies (2)

Hi There,

I know this may seem like a silly question because there might be 1000s of tutorials but I just can't quite figure it out.

I have a ..... More

Print this item

  Help with a regex? (solved)
Posted by: wrybread - May-01-2023, 02:57 AM - Forum: General Coding Help - Replies (3)

I'm trying to isolate the number in a filename that can look like these:

DJI_0991.MP4
DJI_0992 - testing.MP4

The pattern is that it always star..... More

Print this item

  When I hit the space bar from the home screen, it sends me to the game over screen
Posted by: JesusisKing - Apr-30-2023, 07:25 PM - Forum: Game Development - Replies (2)

ok, this is driving me nuts, i cant seem to figure out why when i press the space bar from the home screen, it sends me straight to the game over scre..... More

Print this item

  Curious about decorator syntax
Posted by: rjdegraff42 - Apr-30-2023, 01:58 PM - Forum: General Coding Help - Replies (14)

I'm curious as to the rationale behind the choice of decorator syntax for getters and setters. Take, for example:
[CODE]
@property
def prop..... More

Print this item

  Need some help with Pytrends
Posted by: cmg15326 - Apr-30-2023, 01:27 PM - Forum: General Coding Help - Replies (4)

Hey! Shy So I did set up Jupyter Lab and followed some tutorials on how to request data from Google Trends. Somehow I get an Error and I don't re..... More

Print this item

  Feeling pretty discouraged
Posted by: 357mag - Apr-29-2023, 08:39 PM - Forum: News and Discussions - Replies (3)

I have done some console programming in several languages like C++, Python, C#, and Java. Had fun with it but I feel like I'd like to start doing some..... More

Print this item

  Library error
Posted by: M53RX1 - Apr-29-2023, 03:19 AM - Forum: News and Discussions - Replies (14)

hello, i have a problem, i installed this library https://github.com/ValvePython/steam/discussions
but I keep getting this error as if this library ..... More

Print this item

  File path by adding various variables
Posted by: Mishal0488 - Apr-28-2023, 05:21 PM - Forum: General Coding Help - Replies (2)

Hi Guys

This may be a really simple issue which has stumped me.
The "FPath" variable has two back slashes at the end.
In the current setup the c..... More

Print this item

  OSError with SMPT script
Posted by: Milan - Apr-28-2023, 01:34 PM - Forum: General Coding Help - No Replies

Hello team,

I have the following code

[python]import smtplib

my_email = "fdsa@gmail.com"
password = "asdfasdf"
connection = smtplib.SMTP("smtp.gmai..... More

Print this item

  Insert 10gb csv files into sql table via python
Posted by: mg24 - Apr-28-2023, 09:33 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I want to insert CSV Records into sql table via python,
my csv file size is 10 gb,
I found this code on google, Can you suggest better..... More

Print this item

  search an element in pandas series
Posted by: learningPython - Apr-27-2023, 11:24 PM - Forum: General Coding Help - Replies (5)

Good Morning !

I am tyring below code and expecting to get a boolean output 'True' for index B. But I am always getting false. I am trying to use p..... More

Print this item

  "Import" Help
Posted by: Chief816 - Apr-27-2023, 10:52 PM - Forum: Homework - Replies (2)

I'm currently taking a free online course on Python and I am admittedly a beginner in Python as well as coding in general, but I am having an issue th..... More

Print this item

  How to resolve version conflicts in Python?
Posted by: taeefnajib - Apr-27-2023, 08:37 PM - Forum: General Coding Help - No Replies

Hello Pythonistas!
This is my first post here. So I apologize if I made any mistake while posting this question. I have a project in Python 3.10 wher..... More

Print this item

  Delete strings from a list to create a new only number list
Posted by: Dvdscot - Apr-27-2023, 10:56 AM - Forum: General Coding Help - Replies (8)

Hello,

I am doing a Python training course and am stuck at this question:

Got a list:
Char_List = ['Bla', 'Blu', 10, 20, 30, 40]

Want to hav..... More

Print this item

  GPS Points to map for game/simulator
Posted by: AvgPlum - Apr-26-2023, 08:37 PM - Forum: Game Development - Replies (1)

Hi All,
I'm new to attempting any game development but been fooling about with pygame a bunch and seems pretty intuitive as I've got a decent program..... More

Print this item

  Questions regarding usage of pandas library
Posted by: Pala - Apr-26-2023, 04:59 PM - Forum: General Coding Help - Replies (5)

[python]import pandas as pd
import matplotlib.pyplot as plt
# Open the text file in read mode
for i in range(1, 801):
file_name = f"C:/Users/p..... More

Print this item

  Using subprocess to execute complex command with many arguments
Posted by: medatib531 - Apr-26-2023, 01:47 PM - Forum: General Coding Help - Replies (5)

I have a shell script that is as follows:

[code]LOAD_RRD=sysmon.rrd
DISK_RRD=disk.rrd
DISKTEMP_RRD=disktemp.rrd

rrdtool graph load1h.png \
..... More

Print this item

  Keyboard hotkeys
Posted by: purushothama2222 - Apr-26-2023, 12:02 PM - Forum: General Coding Help - Replies (4)

I wanted to assign right sided control key as a hotkey to a function using keyboard.add_hotkey, but unfortunately I am not finding specific code to as..... More

Print this item

  can't find libpHash
Posted by: flash77 - Apr-26-2023, 11:32 AM - Forum: General Coding Help - Replies (14)

Dear community,

I want to use the 3 pHash functions (ph_dct_imagehash, ph_image_digest and ph_mh_imagehash) to compare which fits best for me...
..... More

Print this item

  Any tips to how to find out values?
Posted by: nevlindan - Apr-26-2023, 10:37 AM - Forum: General Coding Help - Replies (1)

Hello 😊

I am super new to python and can’t get around the below topic. Hope this is not a stupid question…

Would anybody have a tip how to do th..... More

Print this item

  Simple screen scrape is baffling me.
Posted by: monty024 - Apr-26-2023, 02:04 AM - Forum: Web Scraping & Web Development - Replies (1)

Greetings,

I am just learning to screen scrape using beautiful soup. I have been doing well so far, but thought I would make a simple script th..... More

Print this item

  trouble with semicolons
Posted by: Skaperen - Apr-25-2023, 07:18 PM - Forum: News and Discussions - Replies (6)

i'm still having trouble with semicolons. but it does not seem to be the spacing issue i previously thought it was. here is my latest example (avoid..... More

Print this item

  Python Script to convert Json to CSV file
Posted by: chvsnarayana - Apr-25-2023, 04:48 PM - Forum: General Coding Help - Replies (8)

Hi All,

We have one requirement to convert Json to CSV file. In json file, values are there for all the columns, some columns are missing but when ..... More

Print this item

  Need help with sorting lists as a beginner
Posted by: Realist1c - Apr-25-2023, 03:39 AM - Forum: General Coding Help - Replies (1)

I am trying to sort scores from a list that was put into a text file and then transferred into another list. I have tried two methods (shown below) bu..... More


Attached Files

Thumbnail(s)
       
Print this item

  Pyspark dataframe
Posted by: siddhi1919 - Apr-24-2023, 07:48 PM - Forum: General Coding Help - Replies (3)

we have a requirement where we need to extract a value from a column of a dataframe and then we have to match this extracted value to another column o..... More

Print this item

  Text-Based RPG - After selecting correct decision it also prints others code
Posted by: KimJiwoo1 - Apr-24-2023, 07:29 PM - Forum: Game Development - Replies (1)

Hiya,

First off, apologies for a presumably hilarious error or gap in knowledge!

I, along with two others have been tasked with making a text-ba..... More


Attached Files

.pdf   Flow Chart - Game.pdf (Size: 123.04 KB / Downloads: 271)
Print this item

  python dictionary syntax
Posted by: nafshar - Apr-24-2023, 06:26 PM - Forum: General Coding Help - Replies (2)

can someone explain how the following dictionary definition is supposed to work?
Pycharm shows it as a syntaxial error, but the class I am taking sho..... More

Print this item

Question my pygame car wont move
Posted by: Erio85 - Apr-24-2023, 04:01 PM - Forum: Game Development - Replies (1)

hi like it says in the title my pygame car wont move unless the mouse is on the window and actively moving about. the window itself is updating (i kno..... More


Attached Files

.py   main.py (Size: 3.8 KB / Downloads: 286)
Print this item

  Homework, works but has logic error
Posted by: goldielocks789 - Apr-24-2023, 11:22 AM - Forum: Homework - Replies (3)

Hi, I am new to the forum and posting on behalf of my son, who has just started doing Python at school. He has done the code below to show someone ge..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  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
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564573
  Tutorial Requ... 453273
  Web Scraping ... 429550
  Newbie with P... 364857
  Thread remain... 337288
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
ishaD Today
fitobar43 Today
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15

User Panel Messages

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