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,533
» Latest member: aihancaiji31
» Forum threads: 38,661
» Forum posts: 175,191

Full Statistics

Online Users
There are currently 357 online users.
» 1 Member(s) | 345 Guest(s)
Apple, Yandex, Bing, Google, AOL, Baidu, Facebook, snippsat

Latest Threads
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
4 hours ago
» Replies: 6
» Views: 639
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
5 hours ago
» Replies: 3
» Views: 147
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Today, 01:32 AM
» Replies: 1
» Views: 100
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:23 AM
» Replies: 7
» Views: 467
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 266
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Jul-12-2025, 02:41 AM
» Replies: 5
» Views: 246
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 4,010
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 161
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 240
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 778

 
  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: 284)
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

  Format String
Posted by: NewPi - Oct-09-2022, 11:19 PM - Forum: General Coding Help - Replies (2)

Hey,

I try to print some formatted integers with padded 0.

But there is always a blank character in front of the print.

My code is:
[python]..... More

Print this item

  Deleting rows based on cell value in Excel
Posted by: azizrasul - Oct-09-2022, 10:07 PM - Forum: General Coding Help - Replies (11)

The following snippet of code deletes empty rows. How can I change the code such that a row is deleted if a value of 'x' appears in any row in column ..... More

Print this item

  Help adding a loop inside a loop
Posted by: Extra - Oct-09-2022, 09:36 PM - Forum: General Coding Help - Replies (31)

Hello,

I have my virtual assistant's code which is in a while true loop & runs fine, but I want to add a loop inside my virtual assistant's while loo..... More

Print this item

  Code Assistance needed in saving the file
Posted by: MithunT - Oct-09-2022, 03:50 PM - Forum: General Coding Help - No Replies

Hi Pythonians,

I am trying to retrieve data from MagicBricks,
The code runs fine, however when the file is saved, there is no data stored.

Re..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  RemoTe server operation w... 4 hours ago mario17 snippsat General Codin...
  Qt Event Filtering 5 hours ago deanhystad deanhystad GUI
  processing nested json da... Today, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt Yesterday, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
Most views
  The best Prog... 572684
  Tutorial Requ... 485712
  Web Scraping ... 437139
  Newbie with P... 380071
  Thread remain... 351372
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12073
buran 8174
snippsat 7352
deanhystad 6855
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aihancaiji31 Today
gmonroe Today
Tharindu Today
thomasjoe604 Today
psychologiss443 Today

User Panel Messages

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