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,933
» Latest member: randydurham
» Forum threads: 38,723
» Forum posts: 175,504

Full Statistics

Online Users
There are currently 45 online users.
» 0 Member(s) | 38 Guest(s)
Applebot, Bing, Google, AOL, Mojeek

Latest Threads
NEED HELP TO RECOVER SCAM...
Forum: Data Science
Last Post: randydurham
1 hour ago
» Replies: 0
» Views: 9
THE MOST TRUSTWORTHY CRYP...
Forum: General Coding Help
Last Post: randydurham
1 hour ago
» Replies: 0
» Views: 8
Too much space between gr...
Forum: GUI
Last Post: RonR
3 hours ago
» Replies: 2
» Views: 871
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
6 hours ago
» Replies: 0
» Views: 47
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
11 hours ago
» Replies: 1
» Views: 353
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,458
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,525
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 390
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 122
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,896

 
  Add root node to xml
Posted by: SriRajesh - Oct-15-2022, 02:20 PM - Forum: General Coding Help - Replies (3)

Hi,
I generated xml string and want to add root node:

#lets create a dataframe
df=pd.DataFrame({'A':[1,2,3],'B':['a','b','c']})

[python]def to..... More

Print this item

  Python presentation materials
Posted by: PA3040 - Oct-15-2022, 07:18 AM - Forum: News and Discussions - Replies (2)

Hi Team,
I am teacher of middle school
we have decided to teach python for our school students from grade 8 onwards
it would be grate if some one ..... More

Print this item

  Get http header ?
Posted by: JohnnyCoffee - Oct-14-2022, 11:06 PM - Forum: Networking - Replies (1)

I'm using the wsgiref module to run an application and I need to get the request header that comes from the client's browser to handle http responses,..... More

Print this item

  is there an unused character in Python?
Posted by: Skaperen - Oct-14-2022, 10:59 PM - Forum: News and Discussions - Replies (8)

is there an unused character in Python? i'm looking for a character i won't see outside of quotes that i can drop into my code for some source proces..... More

Print this item

  Starting place for Pygame Mobile app
Posted by: XavierPlatinum - Oct-14-2022, 10:46 PM - Forum: Game Development - Replies (2)

For anyone who's made mobile apps before, where is a smart place to start making a pygame game for android? Is there a simple template I can dissect ..... More

Print this item

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  NEED HELP TO RECOVER SCAM... 1 hour ago randydurham randydurham Data Science
  THE MOST TRUSTWORTHY CRYP... 1 hour ago randydurham randydurham General Codin...
  [Tkinter] Too much space ... 3 hours ago RonR RonR GUI
  How Reliable Is Assignmen... 6 hours ago tobey12 tobey12 News and Disc...
  Another app idea - intera... 11 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
Most views
  The best Prog... 575818
  Tutorial Requ... 497086
  Web Scraping ... 439831
  Newbie with P... 383528
  New Users Int... 365402
Most reputation
buran 581
snippsat 508
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
randydurham Today
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday

User Panel Messages

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