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,387
» Latest member: zashleyfracesz3221
» Forum threads: 38,820
» Forum posts: 176,013

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 31 Guest(s)
Bing, Google, AOL, AOL, Facebook

Latest Threads
IP address for users
Forum: Networking
Last Post: itx_sumeet
3 hours ago
» Replies: 4
» Views: 7,054
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
8 hours ago
» Replies: 5
» Views: 9,870
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
10 hours ago
» Replies: 4
» Views: 125
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 129
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 73
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 130
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,288
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 96
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 751
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 162

 
Exclamation IndexError: Replacement index 2 out of range for positional args tuple - help?
Posted by: MrKnd94 - Oct-14-2022, 09:46 PM - Forum: General Coding Help - Replies (2)

Hello.

I've been trying for days to fix this error, but to no avail.

This is the code:

[python]def secret_formula(started):
jelly_beans ..... More

Print this item

  Print not appearing in output
Posted by: dgizzly - Oct-14-2022, 09:41 PM - Forum: Homework - Replies (1)

[python]
def main():
#Intro
print("Roulette Wheel Colors App...")


#Prompt user for numbers (0-36)
print("Please eneter poc..... More

Print this item

  New learner in Python, and need help on the term explanation
Posted by: BaicaiPy - Oct-14-2022, 05:37 PM - Forum: Homework - Replies (3)

[b]• Auto load the initial data given in pdf file
• You required to use an appropriate data structure to represent the initial data in-memory.
• It ..... More

Print this item

  dynamic object creation using python
Posted by: gary - Oct-14-2022, 04:27 PM - Forum: General Coding Help - Replies (7)

I have the following requirement
1. Create several geometric objects such as square, triangle, circle etc.
2. Need to create a drop down menu that d..... More

Print this item

  Python Idle won't start
Posted by: totalmachine - Oct-14-2022, 04:12 PM - Forum: General Coding Help - Replies (9)

Output of "idle &" in terminal after garuda linux upgrade:

[error]File "/usr/bin/idle", line 3, in
from idlelib.pyshell import main
File "/usr/li..... More

Print this item

  List of Modules/Libraries Installed by Default?
Posted by: rontarrant - Oct-14-2022, 12:24 PM - Forum: General Coding Help - Replies (2)

I know I can get a list of what's installed using:
pip freeze

However, I don't know which of the installed modules/librar..... More

Print this item

  PowerBI: Using Python Regex to look for values in column
Posted by: MarcusR44 - Oct-14-2022, 10:24 AM - Forum: General Coding Help - Replies (1)

I'm trying to add a column called ofInterest to select UK postcodes that match RG, OX & SA, the column would contain a 1 if the match is found, or 0 i..... More

Print this item

  detect equal sequences in list
Posted by: flash77 - Oct-14-2022, 09:10 AM - Forum: General Coding Help - Replies (17)

Hello,
I'm a beginner in python and I'm trying to get the beginning (picture_nr_hanger_start) and the end (picture_nr_hanger_end) of equal sequences ..... More

Print this item

Smile please help me remove error for string.strip()
Posted by: jamie_01 - Oct-14-2022, 06:40 AM - Forum: General Coding Help - Replies (3)

[code]
#!/usr/bin/python3

from bs4 import BeautifulSoup
import requests
import lxml
import csv


URL = "https://sandiego.craigslist.org/sear..... More

Print this item

  shortening Python code
Posted by: Skaperen - Oct-13-2022, 11:42 PM - Forum: News and Discussions - Replies (12)

to what extent and how do you guys go about shortening your Python code to make it fit in an 80 column terminal or virtual terminal window? is anyone..... More

Print this item

  Inscrutable error
Posted by: Led_Zeppelin - Oct-13-2022, 04:23 PM - Forum: General Coding Help - Replies (7)

The following Python code gives an error when it is interpreted.

[code]
GridsearchCV(
cv=TimeSeriesSplit(gap=0, max_train_size=None, n_splits..... More


Attached Files

Thumbnail(s)
   
Print this item

Shocked plt.scatter() errors
Posted by: asja2010 - Oct-13-2022, 08:15 AM - Forum: General Coding Help - No Replies

Hey Py community,
I'm writing down Markowitz's efficient frontier with jupy using the 4 significant cryptos as stocks and verything is fine until the..... More


Attached Files

Thumbnail(s)
   
Print this item

  How do you manage script?
Posted by: kucingkembar - Oct-13-2022, 04:35 AM - Forum: General Coding Help - Replies (14)

sorry for my bad English,
I have a lot of "subscripts" like this:

[python]#trim whitespace start and end
txt = " Hello! "
strippedtxt = txt..... More

Print this item

  Mac default python interpreter
Posted by: Viewpoint8455 - Oct-12-2022, 10:49 PM - Forum: General Coding Help - Replies (2)

Hello,
I have a problem with my default python (interpreter) on my Mac.
When I type “which python” in the terminal, it shows: “/opt/anaconda3/bin/py..... More

Print this item

Exclamation My code is not working as I expected and I don't know why!
Posted by: Marinho - Oct-12-2022, 06:15 PM - Forum: General Coding Help - Replies (4)

My goal
[font=Verdana][size=medium]My goal was to remove all elements from "inv..... More

Print this item

  Issue getting mouse location
Posted by: finndude - Oct-12-2022, 02:45 PM - Forum: General Coding Help - Replies (1)

Hi All,

The aim of the code below is to get the mouse location on the canvas when its clicked. The canvas also can play a video when the user wants..... More

Print this item

  mysql and LAN
Posted by: tantony - Oct-12-2022, 01:28 PM - Forum: Networking - Replies (7)

Sorry if I'm asking this in the wrong forum. I like to build a database gui using wxpython and mysql.
My question is, since I'll have multiple users ..... More

Print this item

  Precision conversion
Posted by: garynewport - Oct-12-2022, 11:49 AM - Forum: General Coding Help - Replies (2)

I have an output file with a series of values. Some of these are high precision values...

[inline]1.05200D+09 1.05200D+09 9.94376D+31 3.66..... More

Print this item

  pygame image load error
Posted by: Yegor123 - Oct-12-2022, 02:00 AM - Forum: General Coding Help - Replies (1)

Hi Im new to pygame and Coding in general And I just started a tutorial and Whenever I try and load my png images and I run the code i shows up as an ..... More

Print this item

  other string types to consider?
Posted by: Skaperen - Oct-11-2022, 11:21 PM - Forum: News and Discussions - No Replies

Python3 has string types: str, bytes, bytearray. i am wondering if there are any other types that can be used like a string to do things like carry a..... More

Print this item

  Appending a row to a DataFrame
Posted by: azizrasul - Oct-11-2022, 10:03 PM - Forum: General Coding Help - Replies (4)

[python]import pandas as pd

sampledata = {
'first' : ['Sam', 'Jane', 'John'],
'last': ['Smith', 'Donahue', 'Doe'],
}

df = pd.DataFram..... More

Print this item

  Unknown Expression
Posted by: Led_Zeppelin - Oct-11-2022, 05:28 PM - Forum: General Coding Help - Replies (5)

What does pd.dataframe.from_dic(vaidation.cv_results_

As used in the following python code

[code]
def get_cv_plot(validation, parameter):
..... More

Print this item

  python run multiple file paralaly
Posted by: mg24 - Oct-11-2022, 05:25 PM - Forum: General Coding Help - Replies (2)

Hi Team,

I have sql_table.py files, Which I use to extract sql table into csv files.
sql_table.py files requires two parameter. 1) SQL_Table name ..... More

Print this item

  SQL Injection attacks on Python code
Posted by: rob101 - Oct-11-2022, 03:18 PM - Forum: General Coding Help - Replies (11)

I've been researching sql injection attacks (partly because I want to understand the attack, but mostly because it's cropped up in a few recent thread..... More

Print this item

  code to send attachments contained on the drive.
Posted by: stefanoste78 - Oct-11-2022, 02:41 PM - Forum: General Coding Help - Replies (1)

Good evening.

A friend created me the code to send emails from google app scripts and other functions including the sending that can be done with p..... More

Print this item

  Pandas dataframes and numpy arrays
Posted by: bytecrunch - Oct-11-2022, 12:25 PM - Forum: Data Science - Replies (1)

Hello,

I have some basic questions about using Pandas:

-- Structured and Unstructured Data: my understanding is that Pandas deals only wi..... More

Print this item

  Pygame Zero - no actor image
Posted by: toiling_away - Oct-11-2022, 09:13 AM - Forum: Game Development - Replies (2)

Hi all, I'm learning pygame zero and am trying to make a version of the gamemaker's apprentice game I've previously done. The attached code runs witho..... More


Attached Files

.py   game1.py (Size: 4.01 KB / Downloads: 315)
Print this item

  Image database
Posted by: DPaul - Oct-11-2022, 07:11 AM - Forum: Bar - Replies (3)

Hi,
I have inherited a situation where many thousands of scanned images reside as individual .tif files in a directory.
Not a problem, because I can..... More

Print this item

  python run all py files from main py file
Posted by: mg24 - Oct-11-2022, 05:16 AM - Forum: General Coding Help - Replies (6)

Hi Team,

Need help , is it possible
run all below py files one by one ............

I want to call main.py file and it has to run all (add,su..... More

Print this item

  Getting rid of old string values
Posted by: Pedroski55 - Oct-11-2022, 03:18 AM - Forum: General Coding Help - Replies (3)

Recently I posted something here, can't remember exactly which thread, in which I started with an empty string and kept adding bits to it.

deanhyst..... More

Print this item

  Session id http, how to capture ?
Posted by: JohnnyCoffee - Oct-11-2022, 02:00 AM - Forum: Networking - Replies (1)

Studying the tcp/ip protocol stack I could see that the session layer ( osi table ) is part of the application layer na ( ... tcp/ip ) and that it gen..... More

Print this item

  Why is the 'meta description' html tag not translated?
Posted by: Melcu54 - Oct-10-2022, 06:47 PM - Forum: General Coding Help - Replies (2)

I have this python code which works very well.

But I can translate all my HTML tags except this one: <meta name="description" content="...">

c..... More

Print this item

  Wildcards in a String?
Posted by: pajd - Oct-10-2022, 03:31 PM - Forum: General Coding Help - Replies (19)

Hello,

So Im trying to use python to locate a user in SQL and remove it. There will be more than one user that has a username beginning with ROadmi..... More

Print this item

  Training a model to identify specific SMS types and extract relevant data?
Posted by: lord_of_cinder - Oct-10-2022, 04:35 AM - Forum: Data Science - No Replies

Hi all,

I have been playing around with data extraction from SMS messages and had a conundrum. I wanted to create a system that would identify paymen..... More

Print this item

  Zeep AWS problem
Posted by: centorillion - Oct-10-2022, 02:59 AM - Forum: General Coding Help - Replies (2)

Hello guys,

Thanks in advance for helping me. I tried multiple times to upload zeep library in AWS lambda but it never works. I tried this one:

..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  IP address for users 3 hours ago Robots itx_sumeet Networking
  Lottery generator (beginn... 8 hours ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 10 hours ago eedjsa bowlofred 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...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
Most views
  The best Prog... 580339
  Tutorial Requ... 518880
  Web Scraping ... 442761
  Newbie with P... 386944
  New Users Int... 386072
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
zashleyfracesz3221 Today
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday
eedjsa Yesterday

User Panel Messages

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