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,441
» Latest member: happyhippo
» Forum threads: 38,553
» Forum posts: 174,702

Full Statistics

Online Users
There are currently 488 online users.
» 0 Member(s) | 483 Guest(s)
Bing, Yandex, Google, Applebot

Latest Threads
Grok Acedemy Sport Microb...
Forum: Homework
Last Post: Larz60+
3 hours ago
» Replies: 1
» Views: 57
Build Fast, Type-Safe API...
Forum: Tutorial Requests and Submissions
Last Post: Mido
Yesterday, 06:51 PM
» Replies: 0
» Views: 73
Python script not working...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Yesterday, 03:24 PM
» Replies: 3
» Views: 183
How to understand object-...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 03:21 PM
» Replies: 3
» Views: 248
Picamera2 commands betwee...
Forum: General Coding Help
Last Post: deanhystad
May-01-2025, 07:39 PM
» Replies: 1
» Views: 205
PyVisa Query Command fail...
Forum: General Coding Help
Last Post: deanhystad
May-01-2025, 04:58 PM
» Replies: 1
» Views: 205
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
May-01-2025, 03:46 PM
» Replies: 2
» Views: 193
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
May-01-2025, 03:43 PM
» Replies: 2
» Views: 302
CSV reader with PyQt6
Forum: Code sharing
Last Post: Axel_Erfurt
May-01-2025, 11:38 AM
» Replies: 3
» Views: 231
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: snippsat
May-01-2025, 07:00 AM
» Replies: 8
» Views: 440

 
Question [SOLVED] Right way to open files with different encodings?
Posted by: Winfried - Apr-23-2024, 08:49 AM - Forum: General Coding Help - Replies (3)

Hello,

Some of the files could be Windows (latin1, iso9959-1, cp1252), others could be utf-8.

Is try/except the right way to do it?

[python]#..... More

Print this item

  TypeError: Diagram.render() takes 1 positional argument but 2 were given
Posted by: sachin1361 - Apr-23-2024, 06:39 AM - Forum: General Coding Help - No Replies

I'm new to Python and used ChatGPT to generate a script that automatically creates a visual diagram after running terraform apply. The script (in diag..... More

Print this item

  Add NER output to pandas dataframe
Posted by: dg3000 - Apr-22-2024, 08:14 PM - Forum: Data Science - No Replies

I'm trying to write a script that will scan a document and add the extracted information to a dataframe, currently it just prints it and exits. Obvio..... More

Print this item

  Loop through all files in a directory?
Posted by: Winfried - Apr-22-2024, 06:16 PM - Forum: General Coding Help - Replies (10)

Hello,

I need to find all the files located under a given directory, including all the sub-directories it may contain.

Is this a/the right way t..... More

Print this item

  Volume label
Posted by: DPaul - Apr-22-2024, 03:10 PM - Forum: Bar - Replies (3)

Hi,
I would like to do the following:
When I start my search program for prayer cards,
the system looks immediately for availability of the data on t..... More

Print this item

  Made a discord bot game that uses commands but now trying to add buttons
Posted by: Dmcsdiscord - Apr-22-2024, 10:17 AM - Forum: General Coding Help - Replies (1)

Hey guys,

https://pastebin.com/YwTqHbiV —— game working with ! Commands and no buttons

https://pastebin.com/gJWVnGHU ——- game not so working, b..... More

Print this item

  Need help with Allure report
Posted by: Nik1811 - Apr-22-2024, 09:59 AM - Forum: General Coding Help - No Replies

Hi,
I need some help in setting up allure reporting structure into my framework. Can someone please guide where can we add the dependencies and how ..... More

Print this item

  What does .flush do? How can I change this to write to the file?
Posted by: Pedroski55 - Apr-22-2024, 09:28 AM - Forum: General Coding Help - Replies (3)

Looking at using yield, I have this simulated log file: logsim.py

logsim.py has 2 very long lists, ips and docs

ips like this: ips = ['129.194.8..... More

Print this item

  FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries
Posted by: sawtooth500 - Apr-21-2024, 06:16 PM - Forum: General Coding Help - Replies (14)

This is with pandas dataframes. The code works, but I am getting a warning.

[error]C:\Users\thpfs\documents\python\cleaner.py:223: FutureWarning: ..... More

Print this item

  Failing to connect by 'net use'
Posted by: tester_V - Apr-20-2024, 05:34 AM - Forum: General Coding Help - Replies (1)

Greetings to those that still up at this time! Wink
I'm failing to map network shares.
I'm identifying "letters not in use" for a share to mou..... More

Print this item

  Management software with image comparison
Posted by: franc1986 - Apr-19-2024, 09:12 PM - Forum: Web Scraping & Web Development - No Replies

Hi, let me start by saying I'm a beginner.
I wanted to try my hand at this adventure, convinced that with ChatGPT 4 I would be able to do it.
But he..... More

Print this item

Question Using Lists as Dictionary Values
Posted by: bfallert - Apr-19-2024, 08:30 PM - Forum: General Coding Help - Replies (8)

I am trying to use lists as dictionary values. I am running a loop that creates a new list each time and then assigns it to a specific key. The iterat..... More

Print this item

  Pandas Outer merge
Posted by: skollu826 - Apr-19-2024, 07:28 PM - Forum: General Coding Help - Replies (2)

I have two data frames
dataframe 1
col1 col2
1 A
1 B
2 C
5 Z
4 Q

dataframe 2

col1 col2
1 A
1 ..... More

Print this item

  Game "Fluppy bird"
Posted by: nastia_nadashkevich - Apr-19-2024, 04:12 PM - Forum: Game Development - Replies (1)

The problem is that after the bird loses one life, as well as after restarting the game, the pipes do not disappear, so the bird remains in the same p..... More

Print this item

  How does this code create a class?
Posted by: Pedroski55 - Apr-19-2024, 10:56 AM - Forum: General Coding Help - Replies (6)

I don't understand classes in Python!

Why do I get a class like this, without declaring a class??

[python]Employee = type("Employee", (object,),..... More

Print this item

  yield from
Posted by: akbarza - Apr-19-2024, 07:55 AM - Forum: General Coding Help - Replies (4)

hi
in the below code, what is doing yield from? please explain:

[python]#yield_from.py
# from:https://treyhunner.com/2018/04/keyword-argum..... More

Print this item

  questions about dict.get
Posted by: akbarza - Apr-19-2024, 06:21 AM - Forum: General Coding Help - Replies (2)

hi
in the below code:
[python]
#dict_get.py
print(help(dict.get))
'''
Help on method_descriptor:

get(self, key, default=None, /)
Return..... More

Print this item

  convert to bin problem
Posted by: kucingkembar - Apr-19-2024, 02:50 AM - Forum: General Coding Help - Replies (3)

hi, sorry for my bad english,
i tried to create phash compare using "VideoHash"

[python]
#pip install videohash
from videohash import VideoHash..... More

Print this item

  measure diameter of complex structure
Posted by: alminnawi - Apr-18-2024, 10:20 AM - Forum: General Coding Help - No Replies

Hi all,

I have a few complex geometries but for the sake of simplicity lets assume they are random branches of trees (no trunk or leaves) and the b..... More

Print this item

  Cloud computing advice needed
Posted by: sawtooth500 - Apr-17-2024, 07:31 PM - Forum: Data Science - Replies (3)

I'm doing stock backtesting using Python - and I've pretty much maxed the computational abilities of my local machines. So I'm looking for some cloud ..... More

Print this item

  Help with writing monitored data to mysql upon change of one particular variable
Posted by: donottrackmymetadata - Apr-16-2024, 11:28 PM - Forum: General Coding Help - Replies (3)

I am trying to monitor a set of variables which record a product recipe batch and record the final values (or very close to the final values) and writ..... More

Print this item

  Reduce PDF Size
Posted by: bg3075 - Apr-16-2024, 05:21 PM - Forum: Code sharing - No Replies

This code prompts the user for an input & output path/filename, and compresses the original PDF. This is a huge asset when working with PDF images tha..... More

Print this item

  python packaging/ hosted in IIS server
Posted by: manjureka - Apr-16-2024, 10:43 AM - Forum: Web Scraping & Web Development - No Replies

I have developed a website using python Flask which is hosted on IIS and accessible to my team. My question is for security reasons how to package the..... More

Print this item

  Adding a sub menu to a ttk.OptionMrnue ?
Posted by: Robo - Apr-16-2024, 10:31 AM - Forum: GUI - Replies (5)

Hi all,

Can somebody tell me how to add a sub menu to python's ttk.OptionMenu I've created a drop down menu.
but I am unable to fined how to add a..... More

Print this item

  python calculate float plus float is incorrect?
Posted by: sirocawa - Apr-16-2024, 08:06 AM - Forum: General Coding Help - Replies (6)

hi everybody

maybe , try print(27.56+13.78)

I use 3.10.12 and 3.12, get result is 41.339999999999996.
what happend?

Print this item

  Need to get around SSL: CERTIFICATE_VERIFY_FAILED
Posted by: sawtooth500 - Apr-15-2024, 11:18 PM - Forum: General Coding Help - Replies (4)

I'm trying to connect to the API at polygon.io to download historical stock trades data - the below is sample API code provided from polygon.io so it ..... More

Print this item

  Hide CMD call window
Posted by: tester_V - Apr-15-2024, 07:45 PM - Forum: General Coding Help - Replies (8)

Greetings!
Running my script every hour on a windows machine.
The script has a “arp-a” cmd call and a window pops up that is very annoying **angry..... More

Print this item

  Rich output to PDF
Posted by: HEbO61 - Apr-15-2024, 02:26 PM - Forum: General Coding Help - Replies (1)

Is it possible to create an PDF based on Rich output?

Or is there another solution/package in Python to create a PDF with RTF?

Print this item

  Making the tab key work like a tab key
Posted by: jackg - Apr-15-2024, 01:29 PM - Forum: General Coding Help - Replies (3)

Folks,

Is there a way to make the tab key (on the keyboard) work like a tab key? I like to use it to tab over 8 spaces or so per key-hit to align m..... More

Print this item

  Dynamically plotting graphs with matplotlib
Posted by: CAD79 - Apr-15-2024, 10:46 AM - Forum: Data Science - Replies (11)

I'm trying to create an application that formats data from a data logger that I have coded using an Arduino. I have the code finished and the output d..... More

Print this item

  Cubic spline Graph Interpretation how?
Posted by: GREEN369 - Apr-15-2024, 06:51 AM - Forum: Data Science - Replies (1)

Hi Friends,

i am new to python i want to calculate the r2 value for the cubic spline graph and how the results are intercepted from the graph based..... More


Attached Files

Thumbnail(s)
   
Print this item

  library for C but written in Python
Posted by: Skaperen - Apr-15-2024, 02:47 AM - Forum: News and Discussions - Replies (1)

has anyone here ever created a library for C but written in Python? i assume the hardest part is the arguments and their types. is there any particu..... More

Print this item

  Just beginning
Posted by: dalekeel - Apr-15-2024, 01:22 AM - Forum: General Coding Help - Replies (2)

I have downloaded and installed python wins from Microsoft v 3.12.3 using default installation.

I got these three files: the first gen_metadata.py ..... More

Print this item

  Sending a text from Python
Posted by: sawtooth500 - Apr-14-2024, 03:43 AM - Forum: General Coding Help - Replies (2)

My cell phone is on the U.S. carrier Verizon - and I can send a text to myself by emailing XXXYYYZZZZ@vtext.com, where the letters are the placeholder..... More

Print this item

Question Custom importer and errors
Posted by: Fips - Apr-13-2024, 10:10 PM - Forum: General Coding Help - Replies (6)

Hi folks!

I'd like to split my package tree into several IDE projects and build a custom importer to import
'top.child1.child2'
from the director..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Grok Acedemy Sport Microb... 3 hours ago happyhippo Larz60+ Homework
  [Django] Build Fast, Type... Yesterday, 18:51 Mido Mido Tutorial Requ...
  Python script not working... Yesterday, 15:24 texwilson47 noisefloor Web Scraping ...
  How to understand object-... Yesterday, 15:21 snl_9527 noisefloor General Codin...
  Picamera2 commands betwee... 05-01, 19:39 GigiG deanhystad General Codin...
  PyVisa Query Command fail... 05-01, 16:58 dazz deanhystad General Codin...
  [SOLVED] [Beautiful Soup]... 05-01, 15:46 Winfried Winfried General Codin...
  [SOLVED] [Beautiful Soup]... 05-01, 15:43 Winfried Winfried General Codin...
  CSV reader with PyQt6 05-01, 11:38 suburbanprojects Axel_Erfurt Code sharing
  where should DEFAULT_CIPH... 05-01, 07:00 Skaperen snippsat General Codin...
  what name to give to a ne... 04-30, 21:39 Skaperen Skaperen News and Disc...
Most views
  The best Prog... 557796
  Tutorial Requ... 425845
  Web Scraping ... 423267
  Newbie with P... 351680
  Thread remain... 325519
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12038
buran 8166
snippsat 7324
deanhystad 6809
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
happyhippo Today
latifayounes Yesterday
Mido Yesterday
CarmelaAffow Yesterday
AlexZolotov 05-01

User Panel Messages

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