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,941
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,517

Full Statistics

Online Users
There are currently 51 online users.
» 0 Member(s) | 47 Guest(s)
AOL, AOL, Google

Latest Threads
A coding beginner needs h...
Forum: General Coding Help
Last Post: paul18fr
1 hour ago
» Replies: 1
» Views: 113
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 8
» Views: 279
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,473
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 875
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,700
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,222
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,747
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,547
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,651
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,837

 
  Problem with csv
Posted by: giorgosmarga - Mar-17-2021, 09:52 PM - Forum: General Coding Help - Replies (4)

[python]def printGames():
with open("boardgames.csv", 'r') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
..... More

Print this item

  data iteration in a file
Posted by: chris1 - Mar-17-2021, 07:27 PM - Forum: General Coding Help - Replies (2)

Hello
I would like to know if it is possible to iterate the strings to be entered in a file

Normally, as in the example below, we enter a char..... More

Print this item

  Error in my code?
Posted by: ebolisa - Mar-17-2021, 07:04 PM - Forum: General Coding Help - Replies (7)

Hi,

The following code works, but if I define it, it fails. Where's my error?
TIA

[python]import sys

mailScript = "C:\SharedFiles\Python\pra..... More

Print this item

  Creating a dashboard for a Pi that switches feeds.
Posted by: mrbojangles1814 - Mar-17-2021, 05:57 PM - Forum: GUI - Replies (1)

I'm having a hard time getting this to work. I have a Raspberry Pi with a 4 inch screen that I am trying to make a display that shows the time and the..... More

Print this item

  Question on None function in a machine learning algorithm
Posted by: Livingstone1337 - Mar-17-2021, 05:26 PM - Forum: General Coding Help - Replies (1)

[python]def evaluate_algorithm(dataset, algorithm, n_folds, *args):
folds = cross_validation_split(dataset, n_folds)
scores = list()
for fold in..... More

Print this item

  cursor.execute: How to insert dynamic number in a string?
Posted by: stoeberhai - Mar-17-2021, 03:24 PM - Forum: General Coding Help - Replies (2)

I'd like to make a SQL-request.
In the mooment SQL-approach and the request are working well.
In the cursor.execute command i coded a static string ..... More

Print this item

  How do I change this code for searching duplicats in python ?
Posted by: Eidrizi - Mar-17-2021, 01:34 PM - Forum: General Coding Help - No Replies

This is the code that I use for searching duplicates in my excel sheet :

[python]def check_duplicacy(first_col):
first_col_list = first_col.to..... More

Print this item

  Graphics Formatting - X-axis Notation and Annotations - Matplotlib
Posted by: silviover_junior - Mar-17-2021, 01:19 PM - Forum: General Coding Help - No Replies

Distinguished colleagues, good morning.

I am working on building a graph using matplotlib and I am facing some difficulties.

How can I leave the..... More

Print this item

  How can I upload some files to my website?
Posted by: brunolelli - Mar-17-2021, 01:01 PM - Forum: General Coding Help - Replies (3)

Hello guys,

I'm currently saving some .csv files on my computer, but I would like to upload those .csv files to my website, is it possible to be do..... More

Print this item

Question How to include Modules not found (conditional imports) in my setup.py when I want to
Posted by: cff - Mar-17-2021, 11:57 AM - Forum: General Coding Help - No Replies

I am trying to compile my Python 3.9 script with Py2app on my MAC OS Catalina: MAC OS CATALINA 10.15.6 Python 3.9.


I made the setup.py file with ..... More

Print this item

  Simple problem with functions and returns
Posted by: danlopek14q - Mar-17-2021, 10:53 AM - Forum: Homework - Replies (10)

Hello guys I hope You will be able to help me with these simple functions. I can not understand and I tried everything.I spent couple days, watched vi..... More

Print this item

  tkinter text widget word wrap position
Posted by: chrisdb - Mar-17-2021, 07:42 AM - Forum: GUI - Replies (6)

Hi,

I'm trying to figure out the index position on where the tkinter text widget cuts of the word when using WORD wrap. I thought the newline '\n' ..... More

Print this item

  Python input not working
Posted by: Mar10 - Mar-17-2021, 01:16 AM - Forum: General Coding Help - Replies (4)

Hello, I just installed python 3.9 and now its not working correctly.

Example:
I typed this simple script.

name = input ("Enter Your Name Pleas..... More

Print this item

Lightbulb How can I use the following script?
Posted by: brunolelli - Mar-16-2021, 11:33 PM - Forum: General Coding Help - Replies (8)

Hello guys,

This is my first time using Python and I'm very excited about it.
I'm trying Scrape some data from a website (www.zapimoveis.com.br), ..... More

Print this item

  Physics Simulation
Posted by: HokagePikachu - Mar-16-2021, 10:58 PM - Forum: GUI - Replies (1)

Hello! I am trying to simulate a 3D car that drive off road. Especially, I want to see the movement of car suspensions. What technologies, libraries, ..... More

Print this item

  Trying to get all this on a single thread
Posted by: stylingpat - Mar-16-2021, 08:12 PM - Forum: General Coding Help - No Replies

Hello everyone, I am trying to get this code eventually onto a single thread but I cannot figure out how to get everything into functions. Because wit..... More

Print this item

  User Subclasses
Posted by: holyghost - Mar-16-2021, 08:10 PM - Forum: General Coding Help - Replies (6)

Hi,

My current project implementation provides a base class and a child class which provides variables for the base class to use in its methods. F..... More

Print this item

  Type help
Posted by: aliwien - Mar-16-2021, 04:36 PM - Forum: Homework - Replies (1)

[python]def sayısal(Vs, Vi):
return Vs - Vi

def artış(x, r):
y = x*((r/100)+1)
return y

h = 1
a = float(input('Number of cases: ..... More

Print this item

  google sheet recheck data error !
Posted by: puttimet38 - Mar-16-2021, 10:42 AM - Forum: Web Scraping & Web Development - Replies (2)

help me ! I'm helpless


[python]def log_log():

logdate_text1 = driver.find_element_by_xpath('//*[@id="tblData"]/tr[1]/td[6]')
logdes_text1 =..... More

Print this item

  list.count does not appear to function
Posted by: Oldman45 - Mar-16-2021, 10:27 AM - Forum: General Coding Help - Replies (7)

I am learning about lists and apparently list.count does not function in the following:
[python]
mylist = [5, 12, 27, 3, 12, 5, 9, 5, 11]
mylist.co..... More

Print this item

  Having trouble with regular expressions
Posted by: mikla - Mar-16-2021, 01:40 AM - Forum: General Coding Help - Replies (3)

Hi I am a new python learner, having some difficulty with regular expressions

[python]
import re

x='trash bag 19th of July 1.456 3x times 20 ju..... More

Print this item

  what data structure to use?
Posted by: Winfried - Mar-15-2021, 10:42 PM - Forum: General Coding Help - Replies (4)

Hello,

I have a two-column, CSV file that lists amenities cities have:
[font=Courier New, Courier, monospace]ZIP;Amenity
51454;5
51454;6
53130;5
5943..... More

Print this item

  Word count
Posted by: vanjoe198 - Mar-15-2021, 09:48 PM - Forum: Homework - Replies (1)

Hello everyone,

I am having trouble with my homework for school and would like someone to guide me in the right direction to get this assignment do..... More

Print this item

  Seperate output buffer
Posted by: matt_the_hall - Mar-15-2021, 07:56 PM - Forum: General Coding Help - Replies (2)

Hello,

I am writing a program that has graphical output to the terminal. I would like to be able to see the results of print messages set to double..... More

Print this item

  Two types of single quotes
Posted by: Led_Zeppelin - Mar-15-2021, 07:24 PM - Forum: General Coding Help - Replies (2)

In the following program, which I did not write myself, I am puzzled by something.
The code is:

[python]
import feather
import pandas as pd
imp..... More

Print this item

  Japanese characters in Flask
Posted by: eff - Mar-15-2021, 05:38 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi!
I want to iterate through this dictionary in Flask:

[python]hiragana_dict = {"a": u"\u3042", "i": u"\u3044", "u": u"\u3046", "e": u"\u3048", "..... More

Print this item

  how to filter two fields in json using python
Posted by: python_student - Mar-15-2021, 05:25 PM - Forum: General Coding Help - Replies (4)

Hi
I need some help. I'm trying to filter two fieds in json but its not working. This json is from API and have a lot of pages. In first page its wor..... More

Print this item

  Parametric portfolio optimization by Brandt 2009
Posted by: schnellinga - Mar-15-2021, 03:35 PM - Forum: Data Science - Replies (5)

Hello Guys!
I am fairly new to Python and I am seeking for help.
I am trying to do the parametric portfolio optimization by Brandt. (2009)
with the..... More

Print this item

  Combining outputs into a dataframe
Posted by: rybina - Mar-15-2021, 02:43 PM - Forum: General Coding Help - No Replies

Hi,

I'm hoping for some help with combining several results into a dataframe.

There are 12 queries with results like this in total, but for thi..... More

Print this item

  Help me about loops
Posted by: aliwien - Mar-15-2021, 01:57 PM - Forum: Homework - Replies (3)

Hello everybody, I want the project about loops and I need your help. My desire is:
(a) (b)
1) 150
2) 300
3) 450
4) 600
My purpose increment col..... More

Print this item

  Understand order of magnitude performance gap between python and C++
Posted by: ThelannOryat - Mar-15-2021, 11:02 AM - Forum: General Coding Help - Replies (4)

**Summary: ** I observe a ~1000 performance gap between a python code and a C+ code doing the same job despite the use of parallelization, vectorizati..... More

Print this item

  Task-Throw a dice 10 Times
Posted by: tjm - Mar-14-2021, 10:11 PM - Forum: Homework - Replies (3)

Write python to output the list of results from calculating the mean score from 10 throws of a 6 sided dice run 5 times.

So throw a dice 10 times a..... More

Print this item

Exclamation Hi, what is the best 3D game engine with a scripting method similar to that of gdeve
Posted by: markcopperman78 - Mar-14-2021, 08:16 PM - Forum: Game Development - Replies (2)

Hi, what is the best 3D game engine with a scripting method similar to that of gdevelop?

Print this item

Heart How to address a folder???
Posted by: metebeder - Mar-14-2021, 06:59 PM - Forum: General Coding Help - Replies (1)

i am complately neawby form python,please help

My file is stored in "C:\Users\metbe\OneDrive\Desktop\RPA\download\DM2.jpg"

i need work with this..... More

Print this item

  f-string error message not understood
Posted by: Skaperen - Mar-14-2021, 06:36 PM - Forum: General Coding Help - Replies (4)

i don't understand this error message
[output]
t2a/phil /home/phil 452> py py/cmd/lndir.py -v foo bar/a/b/c/x
File "py/cmd/lndir.py", line 133
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A coding beginner needs h... 1 hour ago Littlefish paul18fr General Codin...
  Using a For Loop to subtr... 5 hours ago Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576551
  Tutorial Requ... 498516
  Web Scraping ... 440426
  Newbie with P... 384328
  New Users Int... 367515
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 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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