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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 35 Guest(s)
Google, Applebot, AOL, Facebook

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
8 hours ago
» Replies: 1
» Views: 48
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
8 hours ago
» Replies: 11
» Views: 254
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
9 hours ago
» Replies: 3
» Views: 94
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Today, 05:07 AM
» Replies: 5
» Views: 229
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 87
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,600
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 186
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 169
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,851
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,408

 
  understanding error message
Posted by: krlosbatist - Oct-24-2021, 04:46 PM - Forum: General Coding Help - Replies (1)

I'm new to python language...

Could someone please help me understand why this error message is appearing when calling dependencies?
[error]------..... More

Print this item

  Use of function/return
Posted by: Paulman - Oct-24-2021, 12:56 PM - Forum: Homework - Replies (6)

Hello all,

I had the task to code the following:

Take a list of integers and returns the value of these numbers added up, but only if they are ..... More

Print this item

  what to do if moudle not in pip3 only in pip2?
Posted by: korenron - Oct-24-2021, 12:21 PM - Forum: General Coding Help - Replies (22)

I'm trying to use modemcmd
I can only install it using pip install
when I ty to use pip3 install modemcmd
I get :
[python]
Looking in indexes:..... More

Print this item

  how to startup canbus interface on pi
Posted by: korenron - Oct-24-2021, 10:06 AM - Forum: General Coding Help - Replies (2)

Hello ,
up until now on startup I use

os.system('ip link set can0 up type can bitrate 250000 restart-ms 10000') 
in order to make..... More

Print this item

  can I run python code from python 3 ?
Posted by: korenron - Oct-24-2021, 09:45 AM - Forum: General Coding Help - Replies (2)

I will explain

I have main code running on python3
I want to use also anoter code I wrote on python2 and import it as a "function"

can I do t..... More

Print this item

  IMHO, environment variable PYTHONHASHSEED ...
Posted by: Skaperen - Oct-23-2021, 07:34 PM - Forum: Bar - No Replies

IMHO, environment variable PYTHONHASHSEED should support range(2**64) on 64 bit platforms. users can still limit their own usage to range(2**3..... More

Print this item

  pandas: Compute the % of the unique values in a column
Posted by: JaneTan - Oct-23-2021, 01:59 PM - Forum: Data Science - Replies (1)

Hi

I am new to crosstab & pivot tables.


DF


[python]
| | Firm |
0 | A |
1 | A |
2 | B |
3 | B ..... More

Print this item

  selenium wait for text question
Posted by: Larz60+ - Oct-23-2021, 11:15 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to wait for certain text to show up in the web page after I click on the 'Next' button.
if pageno == 1, the code works as expected.
when..... More

Print this item

  How to loop music with pygame
Posted by: finndude - Oct-23-2021, 10:20 AM - Forum: Game Development - Replies (2)

Hi,

I have this line of code below:

[python]pygame.mixer.Channel(0).play(pygame.mixer.Sound("Z:\Finley\School\Sixth Form\CS\Code\OOP\dice_gamble..... More

Print this item

  pandas pivot table: How to find count for each group in Index and Column
Posted by: JaneTan - Oct-23-2021, 04:35 AM - Forum: General Coding Help - No Replies

I am new to pivot table. I just want the count of each Age Grp by Mth. I tried

[python]pivot1=pd.pivot_table(df,index=[ "Age Grp"], columns=["Mth"]..... More

Print this item

  print on a single line with start/end brackets and commas
Posted by: Paulman - Oct-22-2021, 11:28 PM - Forum: Homework - Replies (2)

Hello,
Does anybody know how to print the results of the code below on a single line with square brackets at the beginning and at the end and the sin..... More

Print this item

  Can't install nor import delorean module
Posted by: Tek - Oct-22-2021, 11:14 PM - Forum: General Coding Help - Replies (3)

Good Friday evening to you all Pythoners. I believe this is my first post here in your forums and hope this is the correct place for it.
I'm using Ju..... More

Print this item

  PyPI package and files
Posted by: ChrisOfBristol - Oct-22-2021, 07:25 PM - Forum: General Coding Help - Replies (4)

I run my program from the command line like this:
python3 myprogram.py {filename}
where {filename} is the datafile that myprogram processes...... More

Print this item

  How do I get a QScrollArea to scroll?
Posted by: LavaCreeperKing - Oct-22-2021, 06:09 PM - Forum: GUI - Replies (9)

A lot of people seem to have this problem. How do I get a QScrollArea to scroll. I have this code below that creates widgets and places them in lines ..... More

Print this item

  Rename Files based on XML file
Posted by: klturi421 - Oct-22-2021, 03:50 PM - Forum: General Coding Help - Replies (3)

I am working to rename a list of files that are received daily with an index key which is an XML file. Currently file names are given in an indistinct..... More

Print this item

  What's wrong with my code?
Posted by: NeedHelpPython - Oct-22-2021, 05:30 AM - Forum: Homework - Replies (4)

[python]
# you'll need the random module
from random import randint

### Write your functions below ###

def getCardValue():
result = randi..... More

Print this item

  QSoundEffect(pulseaudio): Error decoding source file:
Posted by: LavaCreeperKing - Oct-21-2021, 11:49 PM - Forum: GUI - Replies (4)

I am using Linux now and I was moving an old project onto my computer from a backup. The project was originally made on Windows. One of the features o..... More

Print this item

  Grouping and sum of a list of objects
Posted by: Otbredbaron - Oct-21-2021, 09:38 PM - Forum: General Coding Help - Replies (1)

Hi,

I have a list of objects with certain attributes: I would like to group them and then calculate the sum of one of their attributes.
I'll try t..... More

Print this item

  Date format and past date check function
Posted by: Turtle - Oct-21-2021, 07:05 PM - Forum: General Coding Help - Replies (5)

I'm looking to combine my logic into a single function to check if the user's input is in my required format and to make sure the date is not in the p..... More

Print this item

  a module can be found but another cannot
Posted by: Skaperen - Oct-21-2021, 06:11 PM - Forum: News and Discussions - Replies (7)

when i try to import ftrgen3 it can be found but ftrgen5 cannot:
[output]
lt2a/ka9wgn /home/ka9wgn 5> py
Python 3.6.9 (default, Jan 26 2021, 15:33:..... More

Print this item

  Ask again if wrong guess with While.
Posted by: EduPy - Oct-21-2021, 04:43 PM - Forum: General Coding Help - Replies (4)

Hi

I'm learning python and exercising the loop function with while.

I would like to make a code that ask me to input the name again if it's wron..... More

Print this item

  Why does the image for the button not appear?
Posted by: finndude - Oct-21-2021, 03:53 PM - Forum: GUI - Replies (4)

Hi all,

The below code is a simple game I'm trying to make within Tkinter. The current issue is that when I press deposit, the menu opens and the b..... More

Print this item

  Heroku Error H10
Posted by: jamesaarr - Oct-21-2021, 03:25 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi all,

My flask app is crashing constantly with this error. Files are:

app name on heroku settings is: "obscure-citadel-40024"

basic flask app(fla..... More

Print this item

  Subwindow
Posted by: catlessness - Oct-21-2021, 12:49 PM - Forum: GUI - Replies (5)

is instantiating a subwindow in the main window considered a new thread?
cuz I'm getting warnings like:
QObject::connect: Cannot queue arguments of ..... More


Attached Files

.py   AppMap_setup.py (Size: 7.93 KB / Downloads: 369)
.py   PI_GUI_Func.py (Size: 4.5 KB / Downloads: 376)
.py   PI_GUI_Main.py (Size: 14.87 KB / Downloads: 410)
Print this item

  position of the matching
Posted by: guy7200 - Oct-21-2021, 10:17 AM - Forum: General Coding Help - No Replies

please
I don't understand why this code don't return the x and the y position on the rectangle,
I try to get the position of the matching

[python..... More

Print this item

  string format challenge
Posted by: jfc - Oct-21-2021, 09:28 AM - Forum: General Coding Help - Replies (2)

My goal is to use the format function to print one value of a dict based on a key known at runtime.
I can do it with the an f-string (first print)
I c..... More

Print this item

Question [SOLVED] Delete specific characters from string lines
Posted by: EnfantNicolas - Oct-21-2021, 08:35 AM - Forum: General Coding Help - Replies (4)

[Solved]
I have this file right here, which is an extract of a much bigger file.

[quote]CSCIR, 30, 0, 0
CSYS, 0
MAT , 230..... More

Print this item

  serial connection to Arduino
Posted by: Jack9 - Oct-21-2021, 08:31 AM - Forum: General Coding Help - Replies (4)

Trying to connect pc windows 10 to arduino.
https://pythonforundergradengineers.com/...o-LED.html
But I get this error when using the code..... More

Print this item

Brick Javascript based web page scraping
Posted by: amjadraza26 - Oct-21-2021, 05:54 AM - Forum: General Coding Help - Replies (1)

Hello there I'm trying to scrap data from javascript based website. but it return empty and have no data of my choice. Can any body suggest me how to ..... More

Print this item

  Remove post
Posted by: korenron - Oct-21-2021, 05:53 AM - Forum: General Coding Help - Replies (3)

Remove this please

Print this item

  python spreadsheet app (visual-numpy)
Posted by: rome92 - Oct-21-2021, 02:29 AM - Forum: Code sharing - Replies (2)

spreadsheet app (visual-numpy)
This is a full working spreadsheet app written in python under the ..... More


Attached Files

Thumbnail(s)
   
Print this item

  a function to write or not
Posted by: Skaperen - Oct-21-2021, 01:34 AM - Forum: News and Discussions - Replies (4)

in a container like a sequence or set, i want to replace every item that is also in another argument container with a given value, returning a like-th..... More

Print this item

  The behavior of tune model has changed
Posted by: Led_Zeppelin - Oct-20-2021, 05:53 PM - Forum: General Coding Help - Replies (5)

[code]
import pandas as pd #data loading and manipulation
import matplotlib.pyplot as plt #ploting
import seaborn as sns ..... More

Print this item

  Tkinter Exit Code based on Entry Widget
Posted by: Nu2Python - Oct-20-2021, 02:01 PM - Forum: GUI - Replies (6)

Hello All... I am new to this forum and quite new to Python, please forgive my ignorance. I am using this code for a basic Tkinter GUI and need to fig..... More

Print this item

  |SOLVED] Glob JPGs, read EXIF, update file timestamp?
Posted by: Winfried - Oct-20-2021, 01:01 PM - Forum: General Coding Help - Replies (5)

Hello,

My digital camera has no GPS, so I sometimes take pictures with my smartphone when I need to get geotagged pics.

Problem is, I noticed th..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 8 hours ago lary_p Larz60+ Homework
  [Tkinter] I’m building a ... 8 hours ago tsgiannis tsgiannis GUI
  Help with Serial.write in... 9 hours ago racingsubby Larz60+ General Codin...
  Backward compatibility qu... Today, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578796
  Tutorial Requ... 509721
  Web Scraping ... 441905
  Newbie with P... 385895
  New Users Int... 375851
Most reputation
buran 581
snippsat 510
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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