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,494
» Latest member: kjhlcd4p6g
» Forum threads: 38,579
» Forum posts: 174,818

Full Statistics

Online Users
There are currently 716 online users.
» 1 Member(s) | 710 Guest(s)
Bing, Google, Yandex, Internet Archive, kjhlcd4p6g

Latest Threads
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
Yesterday, 07:49 AM
» Replies: 8
» Views: 21,181
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 06:08 AM
» Replies: 3
» Views: 577
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
May-20-2025, 12:26 PM
» Replies: 13
» Views: 28,816
problems with netcdf if I...
Forum: General Coding Help
Last Post: vytlacfoto
May-20-2025, 05:31 AM
» Replies: 17
» Views: 1,520
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,939
How To Attach data Files
Forum: Board
Last Post: sethmike9
May-19-2025, 04:05 AM
» Replies: 3
» Views: 4,188
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 433
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 226
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 332
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 279

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

  Python project - sport results
Posted by: Qn91 - Oct-09-2022, 02:26 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I compete with my friend in various racket sports. These are: Tennis, Badmintor, Table Tennis, Squash.

I want to create an application t..... More

Print this item

  Adapting mnist model with personal dataset
Posted by: GJG - Oct-09-2022, 02:18 PM - Forum: Data Science - No Replies

Hi guys! wondering if it is possible to use the exact same training model used for mnist digit recognition model, but instead of 10 classifications u..... More

Print this item

  Pycharm and Windoze
Posted by: Pedroski55 - Oct-09-2022, 01:37 PM - Forum: General Coding Help - Replies (3)

I don't use Windows normally, but I can't buy a laptop here without Windows, so I have Windows 10.

I wanted to see what Pycharm is like, so I insta..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Error on import: SyntaxEr... Yesterday, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... Yesterday, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... 05-20, 12:26 JohnJSal hanmen9527 General Codin...
  problems with netcdf if I... 05-20, 05:31 Blaubart vytlacfoto General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files 05-19, 04:05 Talch sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  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...
Most views
  The best Prog... 566767
  Tutorial Requ... 462360
  Web Scraping ... 431671
  Newbie with P... 369114
  Thread remain... 341248
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+ 12052
buran 8170
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
kjhlcd4p6g Today
Arush Yesterday
ishani007 Yesterday
blueglasses Yesterday
Kiongi Yesterday

User Panel Messages

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