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,398
» Latest member: zasamueluniorz7349
» Forum threads: 38,825
» Forum posts: 176,034

Full Statistics

Online Users
There are currently 42 online users.
» 0 Member(s) | 36 Guest(s)
Bing, AOL, Google, Mojeek, Apple

Latest Threads
Sorry Help
Forum: General Coding Help
Last Post: Pedroski55
7 hours ago
» Replies: 1
» Views: 77
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Yesterday, 08:02 PM
» Replies: 6
» Views: 7,172
Check if running from she...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 07:53 PM
» Replies: 1
» Views: 79
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 07:58 AM
» Replies: 28
» Views: 15,628
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 182
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,613
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 260
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,632
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 237
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 381

 
  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

  numpyxl cell values
Posted by: supuflounder - Mar-14-2021, 06:25 PM - Forum: General Coding Help - Replies (1)

OK, I am trying to use numpyxl for the first time. Here are some factoids

The input file looks like this (well, this is the .csv, because I can't ..... More

Print this item

  ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Posted by: hobbyist - Mar-14-2021, 05:45 PM - Forum: General Coding Help - Replies (17)

Hello, any idea how can I fix this error?

Error:
ValueError: x and y must have same first dimension, but have shapes (11,) and (15406, 1)
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Sorry Help 7 hours ago BioNanoTech Pedroski55 General Codin...
  IP address for users Yesterday, 20:02 Robots DeaD_EyE Networking
  Check if running from she... Yesterday, 19:53 rjdegraff42 DeaD_EyE General Codin...
  Merge video with subtitle... Yesterday, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580470
  Tutorial Requ... 519992
  Web Scraping ... 442797
  Newbie with P... 387013
  New Users Int... 386773
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
zasamueluniorz7349 Today
BioNanoTech Today
CarlApome Yesterday
cruisesfares 12-30
azam 12-30

User Panel Messages

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