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,260
» Latest member: nathanael
» Forum threads: 38,784
» Forum posts: 175,840

Full Statistics

Online Users
There are currently 49 online users.
» 1 Member(s) | 44 Guest(s)
Bing, Google, Applebot, Pedroski55

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: nathanael
17 minutes ago
» Replies: 0
» Views: 10
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
3 hours ago
» Replies: 0
» Views: 39
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 10
» Views: 210
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
6 hours ago
» Replies: 3
» Views: 110
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 196
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 375
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 126
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 260
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 412
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 156

 
  multi np.where
Posted by: dawid294 - Mar-01-2021, 02:17 PM - Forum: Data Science - Replies (2)

Hello guys. I need help. Can you help me with code. I have not found it anywhere. I use np.where but I would like to use np.where as if in excel. I ne..... More

Print this item

  find an replace not in all entries
Posted by: Monsterherz - Mar-01-2021, 10:43 AM - Forum: General Coding Help - Replies (1)

hello, i am new in python. I try to make a programm wich translate russian pattern in german pattern. It works but not in all words. Why?

[python]..... More

Print this item

Lightbulb Error found! please help.
Posted by: bisma - Mar-01-2021, 06:42 AM - Forum: Data Science - Replies (1)

[python]# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.utils import shuffle
from s..... More

Print this item

  Reading and appending list
Posted by: MrSwiss - Mar-01-2021, 04:58 AM - Forum: General Coding Help - Replies (1)

I have to read code from a .csv file and put specific columns of data into separate lists. However when I get to column 21 and 22 it says there is not..... More

Print this item

  HackerRank Problem: Code works on VS Code but not on the HackerRank site
Posted by: Pnerd - Feb-28-2021, 06:12 PM - Forum: General Coding Help - Replies (3)

Hi, I'm trying to solve this HackerRank problem: https://www.hackerrank.com/challenges/p[url=https://python-forum.io/thread-32724.html]..... More

Print this item

  How to define a variable in Python that points to or is a reference to a list member
Posted by: JeffDelmas - Feb-28-2021, 04:18 PM - Forum: General Coding Help - Replies (4)

I have a Python list, r[], and would like to define references, or aliases to specific members of the list. This is easy to do in languages with point..... More

Print this item

  how to read multispectral images on python
Posted by: noorasim - Feb-28-2021, 03:54 PM - Forum: General Coding Help - No Replies

I am having multispectral images with .tif extension. How to read these multispectral images on python? Is there any specific library to read these im..... More

Print this item

  Class project
Posted by: nayo43 - Feb-28-2021, 01:40 PM - Forum: Homework - Replies (7)

hello, I have to make a kind of interpreter to read books of choice.
But we are blocking on the addition of the text with the chapters to have a great..... More

Print this item

Question Need some help to fix my code
Posted by: SantiagoPB - Feb-28-2021, 01:38 PM - Forum: General Coding Help - Replies (6)

Hello every one Wink
I got a little problem with my code and I don't know how to fix it Confused .

Is a homework from python, I have to..... More

Print this item

  ListBox Update Issue
Posted by: antonello - Feb-28-2021, 01:11 PM - Forum: GUI - Replies (1)

Hi,

I'm trying to update a PySimpleGui LixtBox contents on run time. I've done done that using

[python]window['_LISTBOX_'].update(['new','valu..... More

Print this item

  urgent I got a syntax errors
Posted by: alm - Feb-28-2021, 12:49 PM - Forum: Homework - Replies (2)

This is what I am asked to do :
[size=small]
Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who ..... More

Print this item

  Python Matplotlib: How do I save (in pdf) all the graphs I create in a loop?
Posted by: JaneTan - Feb-28-2021, 12:07 PM - Forum: General Coding Help - Replies (1)

Hi,

Refer to the entire code appended at the end. Thanks

1) I meet with "Cannot assign to operator (pyflakes E)" when I try to assign a variable..... More

Print this item

  Python Matplotlib: How do I plot lines with different end point in the same graph?
Posted by: JaneTan - Feb-28-2021, 11:56 AM - Forum: General Coding Help - No Replies

Hi

Basically I have Revenue that ends at year 2000 and Profit that ends at year 1998. I want to plot both set of data on the same graph.

I read in t..... More

Print this item

Question How to extract multiple text from a string?
Posted by: chatguy - Feb-28-2021, 07:00 AM - Forum: General Coding Help - Replies (2)

Hi All,

Would anyone know how to create a list of a substring prior to "==>" ?

Example String input:
[color=#3498DB]'\r\nExecuting: /u..... More

Print this item

Question Read and view image.png ?
Posted by: JohnnyCoffee - Feb-28-2021, 04:09 AM - Forum: General Coding Help - Replies (12)

I'm having trouble viewing an image.png. ? When using the code below do I get a problem visualization (image with black background and a white squar..... More

Print this item

  insert row and write to xlsx in python
Posted by: scttfnch - Feb-28-2021, 01:17 AM - Forum: General Coding Help - No Replies

I had assumed inserting a row and writing to an xlsx file in python would be fairly simple, though i am struggling to actualize the results I had inte..... More

Print this item

  file system path representation
Posted by: Skaperen - Feb-27-2021, 10:41 PM - Forum: News and Discussions - Replies (7)

why is a special function needed to get the "file system path representation" (how the documentation refers to it)? isn't the existing representation..... More

Print this item

Heart I need some help with my code
Posted by: SantiagoPB - Feb-27-2021, 08:17 PM - Forum: Homework - Replies (5)

Hello everyone I am Santiago Big Grin

I am doing a homework with python, I let the homework:

LONGEST INCREASING SUB-SEQUENCE
Writ..... More

Print this item

  <class 'str'> ?
Posted by: pprod - Feb-27-2021, 07:12 PM - Forum: General Coding Help - Replies (2)

Why is that '\d' in a regular expression finds digits but then if those digits are stored in a variable, print(type(variable)) returns <class 'str'>?..... More

Print this item

  Expanding on (+,*,%,/,//, etc...)= operator
Posted by: cuppajoeman - Feb-27-2021, 06:59 PM - Forum: News and Discussions - Replies (1)

I had an idea for how we write shorthand for a few binary functions (I'll use + as my example).

When we write

x += 2
, it really m..... More

Print this item

  Applying function
Posted by: mapypy - Feb-27-2021, 02:30 PM - Forum: General Coding Help - Replies (1)

code

Hi,

I still see nulls in X_train and my pipline seems to not have applied. For example, there s..... More

Print this item

  Cramped UI
Posted by: LalaGhost - Feb-27-2021, 02:20 PM - Forum: GUI - Replies (2)

I have a problem that my UI is all cramped up:
https://www.dropbox.com/s/65v77yn5znsajc...P.jpg?dl=0

I use a custom ListWidgetItem:
[python]fr..... More

Print this item

Question UnicodeDecodeError . . .
Posted by: JohnnyCoffee - Feb-27-2021, 02:14 PM - Forum: General Coding Help - Replies (5)

When making a request for a file in .png format through the browser url I receive the following message ( UnicodeDecodeError: 'utf-8' codec can't deco..... More

Print this item

Question SMS sending using USRobotics modem
Posted by: Jacobus - Feb-27-2021, 11:43 AM - Forum: General Coding Help - Replies (2)

[python]
# windows 10 Home 64-bit
# python 3.9.2
# modem: USRobotics 5637
# dailing is oke
# no erors
# not sms sending/recieving
# what to do...... More

Print this item

Question best way to implement algorithm
Posted by: hamidze - Feb-27-2021, 11:37 AM - Forum: General Coding Help - Replies (3)

Hey,
Can you please help me implement this program using python.Huh

I have a list:
The input
[python]list=[["word1", "word2"],["word..... More

Print this item

  Python issue with Mercurial
Posted by: susja - Feb-27-2021, 10:30 AM - Forum: General Coding Help - Replies (7)

'm using Windows 10 and have Cygwin and MobaXterm installed. I need to use Mercurial. It works fine from Cygwin but I want to run it from MobaXterm. I..... More

Print this item

Photo Integration of apache spark and Kafka on eclipse pyspark
Posted by: aupres - Feb-27-2021, 06:53 AM - Forum: General Coding Help - Replies (1)

These are my development environments to integrate kafka and spark.

IDE : eclipse 2020-12
python : Anaconda 2020.02 (Python 3.7)
kafka : 2.13-2.7..... More

Print this item

  Syntax error on line 29
Posted by: manwithjeans - Feb-27-2021, 04:02 AM - Forum: General Coding Help - Replies (3)

can someone please tell me how to fix this im lost here and not very good with code

[python]
import random

from random import randint

import..... More

Print this item

  Issue with a library
Posted by: ebolisa - Feb-27-2021, 12:10 AM - Forum: General Coding Help - Replies (2)

Hi,

For some reason, the IDE doesn't recognize a package. However, the same code runs fine using Visual Studio Code.
What should I look for?
TIA..... More

Print this item

  Keeping the player within a polygon
Posted by: Atekka - Feb-27-2021, 12:05 AM - Forum: Game Development - Replies (6)

Hi, I'm trying to implement a polygonal boundary to stop the player from leaving the polygon. The player uses a circular collider. I've looked around ..... More

Print this item

  Justify the treeview to the last entry
Posted by: MrP - Feb-26-2021, 11:42 PM - Forum: GUI - Replies (7)

Thankyou in advance for any assistance...
I have a ttk.Treeview that is populated from a sqlite3 database, it has a vertical scrollbar, the scrollbar..... More

Print this item

  IndexError: index 0 is out of bounds for axis 0 with size 0
Posted by: atomxkai - Feb-26-2021, 09:38 PM - Forum: Data Science - Replies (2)

Hi friends, need your help. I have this problem with an Excel file wherein it works with my first file but second Excel has an error. Thanks!

[erro..... More

Print this item

  excel - json
Posted by: jmabrito - Feb-26-2021, 06:32 PM - Forum: General Coding Help - Replies (23)

{"3025": {"pos1": null, "pos2": 11, "pos3": null, "pos4": 34, "pos5": 41},
"3026": {"pos1": 6, "pos2": null, "pos3": 27, "pos4": 36, "pos5": null},..... More

Print this item

  Login and download an exported csv file within a ribbon/button in a website
Posted by: Alekhya - Feb-26-2021, 04:15 PM - Forum: Web Scraping & Web Development - No Replies

I am trying to log into a website and download a specific file by using export option within a ribbon

Specifically, I am logging into a primary web..... More

Print this item

Star Interesting Intro to python problem I can't solve.
Posted by: Honestworker - Feb-26-2021, 04:04 PM - Forum: Homework - Replies (5)

Can anyone solve this problem?

“How Old is Your Dog in Human Years?” Calculator

Write a program that calculates a dog’s age in human years. The ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 17 minutes ago nathanael nathanael General Codin...
  PyQt6 QWidgets and system... 3 hours ago stevecoh1 stevecoh1 GUI
  [solved] re.split issue 4 hours ago paul18fr deanhystad General Codin...
  Please guide me to comple... 6 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
Most views
  The best Prog... 578956
  Tutorial Requ... 510435
  Web Scraping ... 441973
  Newbie with P... 385992
  New Users Int... 377022
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 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
nathanael Today
JamesFalkner Today
stevecoh1 Today
Bamboo Today
TomTMH Yesterday

User Panel Messages

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