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

Full Statistics

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

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

 
  Understanding venv; How do I ensure my python script uses the environment every time?
Posted by: Calab - May-09-2023, 09:49 PM - Forum: General Coding Help - Replies (1)

I have several python scripts. Each script starts with a shebang line of #!/usr/local/bin/python3. To execute my scripts I simply enter ./scriptname.p..... More

Print this item

Thumbs Down I hate "List index out of range"
Posted by: Melen - May-09-2023, 09:44 PM - Forum: General Coding Help - Replies (20)

Hello!

I have a question, but please don't give me the answer. I'm just looking for some tips. I'm new to Python, and I'm posting here because I ca..... More

Print this item

  API Request / JSON
Posted by: illmattic - May-09-2023, 01:45 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I am having difficulty pulling data from an API which says that parameter content needs to be application/json. Here is the link to the the ..... More

Print this item

  html module in python 3.6.8
Posted by: suifra - May-09-2023, 07:24 AM - Forum: General Coding Help - Replies (9)

I am new to Python and stuck in an issue, have researched in stackoverflow but couldnt get an answer. The problem statement is as below.

Problem: I..... More

Print this item

  It seems you have to define functions at the top
Posted by: 357mag - May-09-2023, 04:17 AM - Forum: General Coding Help - Replies (7)

I wrote a program that defines two functions: one function squares an integer and the other function cubes it.

When I put the function definitions ..... More

Print this item

  Splitting PDF at Bookmark level 2
Posted by: standenman - May-08-2023, 07:20 PM - Forum: Data Science - Replies (10)

I am trying to split a pdf document at the second bookmark level Here is my code:

[python]import os
import PyPDF2

# Open the PDF file
input_p..... More

Print this item

  New to python/coding Need help on Understanding why this code isn't working. Thanks!
Posted by: mat3372 - May-08-2023, 08:51 AM - Forum: General Coding Help - Replies (8)

Hi all! I am new to python and coding in general. I am following along in a book and have come across code that the(interpreter/compiler **not sure wh..... More

Print this item

  Django images will not load
Posted by: pythonpaul32 - May-08-2023, 02:39 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to make a hotel reservation app, but my images will not load. I am using Django and Bootstrap

I have my pictures in a media directory i..... More

Print this item

  why do we need dict.get() ?
Posted by: Skaperen - May-06-2023, 11:55 PM - Forum: News and Discussions - Replies (10)

dict instances have a .get() method that is similar to the .pop() they also have, except nothing is removed and the ..... More

Print this item

  Monitoring a Directory for new mkv and mp4 Files
Posted by: lastyle - May-06-2023, 11:42 PM - Forum: General Coding Help - Replies (3)

Hi all,

i wanted to code a Monitor that observes a Folder and it`s subfolders for new mkv and mp4 Files. But when i add a File to the Folder the Ro..... More

Print this item

  Organizing several similar classes with overlapping variables
Posted by: 6hearts - May-06-2023, 09:24 PM - Forum: General Coding Help - Replies (7)

I am struggling for weeks now how to structarize a bunch of classes that have several similarities.
Perhaps the best analogy would be a class represen..... More

Print this item

  Function to Select a Date
Posted by: standenman - May-06-2023, 07:11 PM - Forum: Data Science - Replies (2)

I am attempting to create a function that would load a set of medical records and determine what was the date of treatment. Any given page of a medic..... More

Print this item

  Output File ?
Posted by: Kessie1971 - May-06-2023, 03:04 PM - Forum: Homework - Replies (11)

Hello I try to find the top 10 albums in the chinook database 18

Print this item

  Selenium Webdriver Python — ERR_NO_SUPPORTED_PROXIES
Posted by: TimofeyKolpakov - May-06-2023, 02:11 PM - Forum: General Coding Help - No Replies

Hello everyone! I'm having an issue. When I run the code and the browser launches, the browser gives an error message saying "ERR_NO_SUPPORTED_PROXIES..... More

Print this item

  Pygmae big problems with gamescore and fps
Posted by: wired98 - May-05-2023, 10:26 PM - Forum: Game Development - Replies (5)

Hey im very new to python and programming at this moment space invaders(my first project)

I have made it in star wars theme with little death stars..... More

Print this item

  Please help me.
Posted by: SuchUmami - May-05-2023, 05:15 PM - Forum: General Coding Help - Replies (12)

Hi.

I have a piece of code that will get a lot of information. My problem is that I just want to use one piece of information out of the data. It l..... More

Print this item

  Adding libraries to embedded Python as a ZIP
Posted by: The_Oman - May-05-2023, 04:05 PM - Forum: General Coding Help - No Replies

Python 3.8.10 for Windows x64

We have been using the base embedded Python 3.8 with success. We now need to add some additional libraries to the ins..... More

Print this item

  what i am doing wrong ?(
Posted by: lbaskin3 - May-05-2023, 12:24 PM - Forum: Homework - Replies (3)

[python]print(r"""
Switching on the camera in the camel habitat...
___.-''''-.
/___ @ |
',,,,. | _.'''''''._
' | ..... More

Print this item

  Structuring a large class: privite vs public methods
Posted by: 6hearts - May-05-2023, 06:56 AM - Forum: General Coding Help - Replies (3)

I am developing a bigger project that includes some data structures as classes and various functions/operations that computes with the structure of mo..... More

Print this item

  Kivy App - Python3 script to Android app (opencv)
Posted by: jttolleson - May-04-2023, 08:18 PM - Forum: General Coding Help - Replies (7)

Hello all, i am Jayson...
I have really gotten into flask because of this forum and am also starting to make android apps with my scripts
in P4a w b..... More

Print this item

  Using BeautifulSoup: Getting only First Result. Also, trouble with nesting.
Posted by: polkadot - May-04-2023, 06:51 PM - Forum: Web Scraping & Web Development - Replies (1)

From this site https://azure.microsoft.com/en-us/products/ I'm trying to extract all products and product descriptions per category so that category/c..... More

Print this item

  How do I extract information from this dataset?
Posted by: SuchUmami - May-04-2023, 02:32 PM - Forum: General Coding Help - No Replies

I wrote this code which loops around to extract the moving averages for different currency pairs on timeframes:

[python]import krakenex
import pan..... More

Print this item

  Formatting float number output
Posted by: barryjo - May-04-2023, 01:39 PM - Forum: General Coding Help - Replies (2)

Is there a way to globally set the output of printed floats to 2 decimal places?
I would rather not have to use..print('{:010.4f}'.format(x)) for eac..... More

Print this item

  How do I change the location of the _ versions directory?
Posted by: Stas43 - May-04-2023, 07:52 AM - Forum: Web Scraping & Web Development - Replies (1)

(Sorry for google translator)
When working together Django + TinyMCE + django-filebrowser + grappelli +... image thumbnails are created in the [b]_ve..... More

Print this item

  [split] How to resolve version conflicts in Python?
Posted by: atonalwilson - May-04-2023, 05:11 AM - Forum: General Coding Help - Replies (1)

In the official Python client, every object of the RiakObject class has a siblings property that provides access to a list of an object’s sibling valu..... More

Print this item

  threading native_id returning same value for all threads
Posted by: billykid999 - May-04-2023, 02:54 AM - Forum: General Coding Help - Replies (2)

So I'm running some code and trying to thread it. I'm getting se same propery_id/ object_id for each thread when I run it, which to me says the same..... More

Print this item

  Confusion with Sunrise and Sunset Output
Posted by: nikocabs - May-03-2023, 06:28 PM - Forum: Homework - Replies (1)

hello. i am confused with my sunrise and sunset coding because i think the output is wrong. the output was sunrise was in 12 pm and the sunset was in ..... More

Print this item

Information Showing trendline formula in a table per product
Posted by: Carlossxx - May-03-2023, 08:33 AM - Forum: General Coding Help - No Replies

Hi all,

I have a Python script running in Power BI desktop that shows a scatter plot with a exponential and linear trendline. Also it shows the formu..... More

Print this item

  add svg to 2 thread program and display tabel in GUI
Posted by: Nietzsche - May-03-2023, 06:33 AM - Forum: General Coding Help - Replies (5)

Hello,

at the moment my program show an GUI in a thread and in the other thread i get some data via BLE in an array. Now i want to display the dat..... More

Print this item

  Concurrent futures threading running at same speed as non-threading
Posted by: billykid999 - May-03-2023, 03:27 AM - Forum: General Coding Help - Replies (13)

I''m doing I/O reads from network devices using netmiko. using a threading context runs the exact same speed as non threading, I'm not sure if it is ..... More

Print this item

  Merge two functions to one
Posted by: SamLiu - May-03-2023, 03:07 AM - Forum: General Coding Help - Replies (4)

Hi all,
I want to compare with the limit and assign different text colors as below two functions.
How to merge two functions(compared_Sens & compare..... More

Print this item

  Python development environment
Posted by: standenman - May-03-2023, 02:28 AM - Forum: General Coding Help - Replies (3)

I am having horrible problems with using Python on my Windows machine. I want to try scispacy out and I cannot get it to install. I am wondering if ..... More

Print this item

  Difficulty with installation
Posted by: standenman - May-02-2023, 08:33 PM - Forum: General Coding Help - No Replies

I am having trouble with my python installation. i have installed python at C:\Users\stand\AppData\Local\Programs\Python\Python311\. I have an envir..... More

Print this item

  Difficulty with installation
Posted by: standenman - May-02-2023, 08:33 PM - Forum: General Coding Help - Replies (2)

I am having trouble with my python installation. i have installed python at C:\Users\stand\AppData\Local\Programs\Python\Python311\. I have an envir..... More

Print this item

Sad Regular Expressions - so close yet so far
Posted by: bigpapa - May-02-2023, 07:01 PM - Forum: General Coding Help - Replies (5)

Hi all,

So I have this code below that filters the weight column in a data frame. And I want to remove the : and ; in-front of the n..... 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... 564511
  Tutorial Requ... 452960
  Web Scraping ... 429489
  Newbie with P... 364718
  Thread remain... 337156
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
fitobar43 Today
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15
JeanChristophe 05-14

User Panel Messages

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