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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

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

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
9 hours ago
» Replies: 2
» Views: 85
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
10 hours ago
» Replies: 1
» Views: 52
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
11 hours ago
» Replies: 1
» Views: 52
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 311
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 44
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 69
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 260
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 136
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 235
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 419

 
  unpacking tuple not working
Posted by: project_science - Jan-09-2021, 08:45 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm creating a simple calculator. I'm having trouble with unpacking a tuple. My IDE returns an error saying,
[quote]
(num1, num2, den1, den..... More

Print this item

  Using Python request without selenium on html form with javascript onclick submit but
Posted by: eraosa - Jan-09-2021, 06:08 PM - Forum: Web Scraping & Web Development - No Replies

I am trying to submit a form that uses onclick javascript submit function and i think when the submit function is invoked it generates a url for the n..... More

Print this item

  Feedback on salary calculator.
Posted by: FloppyPoppy - Jan-09-2021, 05:28 PM - Forum: Code Review - Replies (1)

Hi all looking for any feedback for my little calculator that I made this morning.

A couple of us are looking at taking some weekend work to boost ..... More

Print this item

  Nested for Loops
Posted by: sammay - Jan-09-2021, 05:24 PM - Forum: General Coding Help - Replies (1)

Hey everybody,
Hope everything goes well,
As I am a newcomer in Python, I have difficulty in understanding the way Python calculate nested loops.
..... More

Print this item

  Fetching data from multiple tables in a single request.
Posted by: swaroop - Jan-09-2021, 04:21 PM - Forum: General Coding Help - No Replies

I am unable to get all the data from multiple tables in a single request.
Here this is my code.
[python]
class maindevotee(db.Model):
id = db.Colu..... More

Print this item

  Conversion CSV to JSON
Posted by: mati - Jan-09-2021, 04:13 PM - Forum: Data Science - Replies (1)

Hello Everyone,
I'm new here.
I'm looking for help in my code.
I'm writting app to convert csv to json file and i did the conversion but final .jso..... More

Print this item

  Inserting multiple rows in a single request.
Posted by: swaroop - Jan-09-2021, 10:36 AM - Forum: General Coding Help - Replies (2)

How to insert multiple rows in a single request using flask-sqlalchemy.
[python]
class relatives(db.Model):
id = db.Column(db.Integer, primary_..... More

Print this item

  Pygame vs Turtle
Posted by: BenBach18 - Jan-09-2021, 10:06 AM - Forum: Homework - Replies (1)

Hi guys,

unfortunately I can't find anything on the internet regarding the advantages and disadvantages of the modules "Pygame" and "Turtle".
I ..... More

Print this item

  [split] Getting Index Error - list index out of range
Posted by: krishna - Jan-09-2021, 08:18 AM - Forum: Data Science - Replies (2)

I am getting the same type of error. Please help


I am getting the same error. If your issue is resolved please help me.

Print this item

  Codility Frog River One
Posted by: Westerner - Jan-09-2021, 06:49 AM - Forum: General Coding Help - Replies (2)

Heya, I've been running through Codility challenges and came upon a snag.
This program is meant to output the shortest time (K) possible to cross the..... More

Print this item

  Although this is a talib related Q it's mostly related to python module installing..
Posted by: Evalias123 - Jan-09-2021, 03:53 AM - Forum: General Coding Help - Replies (4)

Although I had installed numpy and apparently have it up to date, I've spent several hours banging my head into a wall trying to

pip install talib..... More

Print this item

  Game “Pong” I have problems with the code
Posted by: BenBach18 - Jan-09-2021, 12:52 AM - Forum: Game Development - Replies (2)

I have programmed the game Pong. It can be opened and played, but it still indicates that there is an error:

Traceback (most recent call last):
Fi..... More

Print this item

  Extracting data from a website
Posted by: tgottsc1 - Jan-08-2021, 09:31 PM - Forum: General Coding Help - Replies (2)

Hello,

I have a very basic problem and would be happy if someone could help me out.

I would like to extract price data of a stock from a websi..... More

Print this item

  Testing Zipfiles
Posted by: millpond - Jan-08-2021, 07:55 PM - Forum: General Coding Help - Replies (7)

Over the holidays my main data drive crashed, requiring a deep data scan, which resulted in hundreds of thousands of files with extensions but no name..... More

Print this item

  interactive map and function
Posted by: hurc60248 - Jan-08-2021, 06:17 PM - Forum: General Coding Help - Replies (1)

hello everyone
I would like to create an interactive map on Python. (I saw that I could do this with folium). However, I would also like that when I ..... More

Print this item

  Update Date based on Time/String
Posted by: stevezemlicka - Jan-08-2021, 05:49 PM - Forum: General Coding Help - Replies (1)

I am absolutely new to Python. While having a bit of experience with perl, ruby, and some other programming languages, I figure it's about time I del..... More

Print this item

  Convert string to JSON using a for loop
Posted by: PG_Breizh - Jan-08-2021, 05:41 PM - Forum: General Coding Help - Replies (3)

Hello,

I need to transform a string like "Name1:Val1|Name2:Val2" to a JSON like [{'name': 'Name1', 'value': 'Val1', 'status': 'Passed'}, {'name': ..... More

Print this item

  cosmetic glitch in tutorial
Posted by: penhelm - Jan-08-2021, 05:39 PM - Forum: News and Discussions - Replies (1)

(If you're short on time, feel free to skip this post.)

I have found a cosmetic glitch in the tutorial at:
https://docs.python.org/3/tutorial/intr..... More


Attached Files

Thumbnail(s)
   
Print this item

  get year information from a timestamp data frame
Posted by: asli - Jan-08-2021, 04:29 PM - Forum: General Coding Help - Replies (1)

Hi all,
I am new to python.
I am reading a datafile where there is timestamp values as string.
I want to ger distinct years from this dataframe an..... More

Print this item

  Curses script doesn't work
Posted by: wavic - Jan-08-2021, 03:49 PM - Forum: General Coding Help - Replies (1)

I was bored and started to play with curses. I wrote a small script which just shows the key you hit and you are able to move that around. But it cras..... More

Print this item

  Connect device using Visa TCP Socket connection
Posted by: d777py - Jan-08-2021, 03:02 PM - Forum: General Coding Help - Replies (1)

In summary; I am trying to connect to a device using Visa TCP Socket option.

The Connection does not complain but I can not run any SCPI command to t..... More

Print this item

  Sympy nonlinsolve does not return explicit solution
Posted by: axelle - Jan-08-2021, 02:56 PM - Forum: Data Science - Replies (1)

This is my first attempt at symbolic solving in Python and I would need some help. My aim is to get explicit solutions for my variables in terms of th..... More

Print this item

  gettin flask to call script periodically
Posted by: GrahamL - Jan-08-2021, 01:51 PM - Forum: Web Scraping & Web Development - Replies (1)

As in the title I want a script to get called periodically
I have this script at the bottom of an html file
<script>
setInterval("ajaxd(..... More

Print this item

  Send keys to DirectX
Posted by: Orion - Jan-08-2021, 01:14 PM - Forum: General Coding Help - No Replies

Hello,
I am trying to make send key function for this game: https://www.4ancient.eu/download.php . This game have in Minimum requirements thats use D..... More

Print this item

  Codility Binary Gap Exercise
Posted by: Westerner - Jan-08-2021, 09:51 AM - Forum: General Coding Help - Replies (2)

Heya, rookie coder here trying to build up my know-how.
I've been working on this problem for far too long and was hoping I could get some insight he..... More

Print this item

  c:\... Syntax
Posted by: Aussie - Jan-08-2021, 08:48 AM - Forum: General Coding Help - Replies (18)

Hi Guy's,
I am trying to send a request.

When I try to run the code I get an error arrow below the C: in the below line;

[inline]verify=r"C:\\U..... More

Print this item

  Reload flask current page
Posted by: GrahamL - Jan-08-2021, 08:03 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi
I am developing a Flask app that communicates with a back end via pipes.
I need to reload the current page of the Flask app when an update is re..... More

Print this item

  Graphs with Python
Posted by: BlazingWarlord - Jan-08-2021, 07:00 AM - Forum: Tutorial Requests and Submissions - Replies (1)

A simple tutorial for users who want to learn basics of Matplotlib and plot all kinds of graphs in Python. Hope it helps Smile

https://thepyg..... More

Print this item

  Newbie help with lxml scrapping
Posted by: chelsealoa - Jan-08-2021, 06:40 AM - Forum: Web Scraping & Web Development - Replies (1)

I am interested in using lxml Python 3 and just chose what I thought would be an easy to follow tutorial... I am simply trying to see if a button exis..... More

Print this item

  Problem with pandas
Posted by: palladium - Jan-08-2021, 12:54 AM - Forum: General Coding Help - No Replies

Sample data:
[output]
business_name
john chin elementary school
sutter pub and restaurant
sri thai cuisine
washington bakery & restaurant
broth..... More

Print this item

  Retrieve oracle view containing clob to dataframe
Posted by: jash - Jan-08-2021, 12:31 AM - Forum: Data Science - Replies (3)

Hello Everyone,
I am trying to retrieve the data from oracle and write it into excel file using python dataframe. However my challenge is that I can'..... More

Print this item

  cannot insert variables {r1}, {r2}, {r3}
Posted by: Kakha - Jan-07-2021, 08:48 PM - Forum: General Coding Help - Replies (8)

Please, help
[python]
import random
r1 =(random.randrange(0, 3))
r2 =(random.randrange(0, 3))
r3 =(random.randrange(0, 3))
num1=111
num2=222
num3=333
..... More

Print this item

  Microphone stream manipulation
Posted by: Talking2442 - Jan-07-2021, 07:36 PM - Forum: General Coding Help - No Replies

Hello and happy new year!

I working with Vosk speech-to-text engine that already works but i want to improve the microphine input.

My thoughts a..... More

Print this item

  Function won't apply dynamically in timeseries
Posted by: illmattic - Jan-07-2021, 07:13 PM - Forum: General Coding Help - Replies (1)

Hello,

I have the following function: [python]def custom_hurst(timeseries):
series = timeseries.iloc[-360:,0]
max_window = len(series)
..... More

Print this item

  How do I get the in3.Client() to create a variable with attributes? (in3 pypi pckge)
Posted by: Johno - Jan-07-2021, 07:02 PM - Forum: General Coding Help - Replies (2)

Using Python 3 and the in3 imported package, how do I get the in3.Client() to create a variable with attributes .account and .contract? I am using Py..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 9 hours ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 10 hours ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 11 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 578998
  Tutorial Requ... 510716
  Web Scraping ... 442012
  Newbie with P... 386046
  New Users Int... 377333
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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