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,258
» Latest member: stevecoh1
» Forum threads: 38,783
» Forum posts: 175,839

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 43 Guest(s)
Bing, Google, Twitter, kshahzad1985

Latest Threads
PyQt6 QWidgets and system...
Forum: General Coding Help
Last Post: stevecoh1
36 minutes ago
» Replies: 0
» Views: 20
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 10
» Views: 201
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 3
» Views: 103
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 192
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 368
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 123
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 255
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 404
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 154
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,647

 
  another documentation error
Posted by: Skaperen - Mar-10-2021, 02:07 AM - Forum: News and Discussions - Replies (2)

there is another documentation error describing os.replace(). see if you can guess what it is without trying it..... More

Print this item

  How to remove multiple tags using regex
Posted by: sbmonzur - Mar-09-2021, 11:55 PM - Forum: Homework - Replies (3)

Hi all,

Newbie here! I am using Python 3.8.3 and am trying to remove tags from the attached text file ..... More

Print this item

  automatically get absolute paths
Posted by: oclmedyb - Mar-09-2021, 08:34 PM - Forum: General Coding Help - Replies (3)

Hello,
I want to automatically convert relative paths to absolute paths.


dirname = os.path.dirname(__file__)
os.path.join(dirname, r'relative/p..... More

Print this item

  Writing a lambda function that sorts dictionary
Posted by: GJG - Mar-09-2021, 06:38 PM - Forum: General Coding Help - Replies (1)

Hi guys! :)

dict1 = {'c':3, 'a':5, 'f':7, 'e':4}
Was wandering how to sort this dictionary by highest value first using lambda ..... More

Print this item

  xlsxwriter + mplfinance: Plot Stock Chart in Excel Worksheet
Posted by: KMV - Mar-09-2021, 05:32 PM - Forum: General Coding Help - Replies (1)

Hello,

I would like to loop into various of instrument tickers in a dataframe and plot each instrument chart into an Excel worksheet.

Is there a pos..... More

Print this item

  Query regrading plotting 95 % significance level
Posted by: PreetiRajpoot - Mar-09-2021, 04:00 PM - Forum: General Coding Help - No Replies

Hello all,
I am trying to add hatching (like dots, hashes, .. ) over contour map. Such hatching could represent the only the statistically significa..... More

Print this item

  Annotating plot bar from values of other a specific column
Posted by: celinafregoso99 - Mar-09-2021, 03:22 PM - Forum: General Coding Help - No Replies

I am trying to create a bar plot with matplotlib in which x values are in one column and the percentages of these values are in a separate column.

..... More

Print this item

  threadlocals are garbage collected before thread ends
Posted by: akv1597 - Mar-09-2021, 12:09 PM - Forum: General Coding Help - No Replies

I have a factory method that may be called from many threads. The method looks inside the thread locals for a certain object and if it doesn't exist, ..... More

Print this item

  Space between list and column alignment
Posted by: rturus - Mar-09-2021, 11:13 AM - Forum: General Coding Help - Replies (8)

Can anyone tell me how I can put more than one list in table style display please? With columns and rows are nicely aligned.

Thanks.

Print this item

  Export dataframe to xlsx - Error "zipfile.BadZipFile: File is not a zip file"
Posted by: Baggio - Mar-09-2021, 10:56 AM - Forum: Data Science - Replies (10)

Hi
current configuration: python: 3.9 |openpyxl: 3.0.6 | pandas: 1.2.3 |xlrd 2.0.1

From a couple of years I use a really useful function to..... More

Print this item

  Xlsxwriter: Create Multiple Sheets Based on Dataframe's Sorted Values
Posted by: KMV - Mar-09-2021, 10:41 AM - Forum: General Coding Help - Replies (2)

Hello,

I would appreciate your help on figuring how to create multiple excel sheets based on sorted results from a dataframe using Xlsxwriter.

In th..... More

Print this item

  Can't get elements by class on this website
Posted by: Cknutson575 - Mar-09-2021, 08:26 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi Everyone,

I have been trying to scrap this website and I run into some NoneType errors that I'm having a really hard time figuring out the root ..... More

Print this item

  How can I pass&return ndarray between python and c++?
Posted by: JESuh - Mar-09-2021, 08:11 AM - Forum: General Coding Help - No Replies

Hello,
I have some questions about python c extension. I want to pass ndarray from python to c++, do some job to change the values in this ndarray, a..... More

Print this item

  Hot Potato
Posted by: Skaperen - Mar-09-2021, 05:36 AM - Forum: Bar - Replies (7)

* Skaperen tosses you the HotPotatoError

Print this item

  Beginner question - storing values
Posted by: cybertron2 - Mar-09-2021, 12:01 AM - Forum: General Coding Help - Replies (4)

Hi everyone. I'm having trouble understanding the fundamentals of Python - namely taking one value and passing it into another function. I've been stu..... More

Print this item

  Where is the full_bpb file?
Posted by: Led_Zeppelin - Mar-08-2021, 10:08 PM - Forum: General Coding Help - Replies (1)

[python]
### preliminary imports
import matplotlib.pyplot as plt
from scipy import stats
import pandas as pd
import numpy as np

df_list = []
..... More

Print this item

  API Gateway to manage multiple API's get put data
Posted by: robsuttonjr - Mar-08-2021, 06:02 PM - Forum: General Coding Help - Replies (2)

I have need to connect to multiple API's using get requests to pull and store some data which will then be used to compile put requests. I would like..... More

Print this item

Brick UnboundLocalErrors: variables reference before assignment? Need Help!
Posted by: sirLancelot - Mar-08-2021, 04:16 PM - Forum: General Coding Help - Replies (1)

Using Python Version 3.9.1 on Windows 10.

I'm a novice at Python and practicing by making a simple text-based zombie survival game.In its cu..... More

Print this item

  Saving variables in memory
Posted by: pprod - Mar-08-2021, 03:48 PM - Forum: General Coding Help - Replies (8)

Hi,
I understand Python saves variables in memory, right? As it does so, does it create any logs or files with a reference to the content of the vari..... More

Print this item

  Suggestions for a simple data analysis program
Posted by: t4keheart - Mar-08-2021, 03:45 PM - Forum: General Coding Help - No Replies

Hi guys,
I'm starting a new project and would like to know what some of you more seasoned python coders might think of my plans.

I need to creat..... More

Print this item

  Else statement
Posted by: Lass86 - Mar-08-2021, 03:31 PM - Forum: General Coding Help - Replies (6)

Hi everyone,

I keep running in to this issue when I want to create an Else statement. I think something goes wrong with the indentation, but I coul..... More

Print this item

  Images in Toplevel()
Posted by: finndude - Mar-08-2021, 02:16 PM - Forum: GUI - Replies (4)

Hi All,

How do i add an image into a window in Tkinter when using toplevel. Ive tried with PIL and haven't got working results.

Print this item

  Saving list in a list
Posted by: quest_ - Mar-08-2021, 01:44 PM - Forum: General Coding Help - Replies (3)

Hello I am trying to save my list into another list. I actually do it but it is saved like

array([0, 0]), array([0, 1])
Howe..... More

Print this item

  Simple Variable Saving in Loop
Posted by: DevDev - Mar-08-2021, 12:15 PM - Forum: General Coding Help - Replies (3)

Hello Python community,
I am relatively new the language, and have most of my experience in MATLAB.
I've tried to already search for the answer to..... More

Print this item

  Question on HTML formatting with set string in message
Posted by: Cknutson575 - Mar-08-2021, 06:59 AM - Forum: General Coding Help - Replies (3)

Hi guys,

I am wondering if anyone can help me format this email so that I just get a bolded: Here are the new jobs from Tethers Unlimited: a..... More

Print this item

  TypeError: __init__() missing 1 required positional argument: 'successor
Posted by: siki - Mar-07-2021, 11:03 PM - Forum: Homework - Replies (1)

Hi guys!

I have a school project. The task is to print three presidents by class and objects using write(), also method __init__ to create presidents..... More

Print this item

  Need help installing infoblox-client on Windows 10
Posted by: dazmac10 - Mar-07-2021, 10:13 PM - Forum: General Coding Help - Replies (1)

Can't install infoblox-client on Windows 10

I am using python 3.9.2 with pip 20

Ran the following command in cmd prompt
pip install infoblox-c..... More

Print this item

  tkinter.Menu – How to make text-variable?
Posted by: Sir - Mar-07-2021, 09:26 PM - Forum: GUI - Replies (3)

Problem context:
"tkinter" module has its own mutable alternatives for str, int, ... .
They are StringVar, IntVar, ... .
Wid..... More

Print this item

  creating simplex tableau pivot program easy or difficult for a beginner in Python?
Posted by: alex_0 - Mar-07-2021, 07:43 PM - Forum: General Coding Help - Replies (2)

I am thinking about trying to make a program where I can fill in a list of numbers and it would solve a simplex tableau and pivot it based on what the..... More

Print this item

  How to make general functions for ecuations
Posted by: Mondata - Mar-07-2021, 06:45 PM - Forum: General Coding Help - Replies (6)

Hi there.
I am quite new in Python, so please excuse me if this question is somewhat too simple.

I am trying to guess how to create a function that r..... More

Print this item

  Function syntax error
Posted by: Changosoyyo - Mar-07-2021, 05:51 PM - Forum: General Coding Help - Replies (2)

Working on this function program and haven't been able to figure out the syntax error. Sure it something simple and its killing me!


[python]#1.v..... More

Print this item

  How realistic
Posted by: phvwijk - Mar-07-2021, 05:06 PM - Forum: Homework - Replies (10)

Pretty simple question.

Situation:
Last year high school, no real coding experience (some SQL, HTML and a bit of PHP), very limited education how..... More

Print this item

  Error when running script on startup in Linux
Posted by: NoahTheNerd - Mar-07-2021, 04:43 PM - Forum: General Coding Help - No Replies

I'm trying to run a python program to display the screen on an SPI display. I'm on a Raspberry Pi 4 running Ubuntu. Before I run the script, I have to..... More

Print this item

  PyImage4
Posted by: finndude - Mar-07-2021, 11:56 AM - Forum: GUI - Replies (1)

Hi ALl,

I have the below code, I keep getting this error message and am not sure why or what to change. The code and the error is below.

[python..... More

Print this item

  Input values and write csv
Posted by: eltoro - Mar-07-2021, 10:19 AM - Forum: Homework - Replies (1)

Hi!
New to Python and would like advice if Im on the right track.

What I would like to achive is.
Write a program to let the user input two value..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PyQt6 QWidgets and system... 36 minutes ago stevecoh1 stevecoh1 General Codin...
  [solved] re.split issue 1 hour ago paul18fr deanhystad General Codin...
  Please guide me to comple... 3 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
Most views
  The best Prog... 578953
  Tutorial Requ... 510415
  Web Scraping ... 441967
  Newbie with P... 385989
  New Users Int... 376990
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
stevecoh1 Today
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday

User Panel Messages

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