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,397
» Latest member: MaxTranslate
» Forum threads: 38,822
» Forum posts: 176,026

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 26 Guest(s)
Internet Archive, Bing, Applebot, Facebook, Google, Mojeek

Latest Threads
Struggles I Faced While E...
Forum: Code Review
Last Post: MaxTranslate
59 minutes ago
» Replies: 2
» Views: 4,576
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
9 hours ago
» Replies: 4
» Views: 144
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
11 hours ago
» Replies: 7
» Views: 3,580
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 140
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 279
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,095
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,946
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 172
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 102
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 171

 
  combining 2 dictionaries
Posted by: Skaperen - Oct-26-2021, 05:40 PM - Forum: General Coding Help - Replies (6)

i have 2 dictionary expressions. i want to combine them into one so that the one has each item from both. if one is already in a variable i c..... More

Print this item

  GPIO pins to RaspPi
Posted by: mmagner2022 - Oct-26-2021, 05:30 PM - Forum: Game Development - Replies (4)

I am currently trying to program a simple pong game using pygame and thus far I have used pygame.KEYUP and pygame.KEYDOWN to control the game. I have ..... More

Print this item

  Can't install pip on mac.
Posted by: Tsushida - Oct-26-2021, 12:57 PM - Forum: General Coding Help - Replies (5)

I have tried most of the commands that you can use on mac to install pip through terminal, and for some reason it always got to syntax error and it co..... More

Print this item

  How to compile following python loop program
Posted by: reinispl - Oct-26-2021, 11:28 AM - Forum: Homework - Replies (3)

How to Compile a program that requires the user to enter two integers A and B. The program outputs all numbers between A and B in descending order and..... More

Print this item

  Create a 2-channel numpy file from two cvs file containing a 9x9 matrix
Posted by: silvialecc - Oct-25-2021, 09:45 PM - Forum: General Coding Help - Replies (1)

Hello everyone, I work in a CNN project for my thesis and I have problem with my Python code. I hope that somebody can help me. Thank you.

I would li..... More

Print this item

  How to fix bugs in Morse alphabet code?
Posted by: dokipo - Oct-25-2021, 08:39 PM - Forum: General Coding Help - Replies (10)

Hello I would like to encode text to the Morse alphabet.
I need to debug it to correct outputs for the last four lines of print.

The ones on lines..... More

Print this item

  execute python script
Posted by: guy7200 - Oct-25-2021, 08:22 PM - Forum: General Coding Help - Replies (1)

i am i looking to execute python script or python file with hotkey in mac

Print this item

  creating a dummy file object
Posted by: Skaperen - Oct-25-2021, 07:28 PM - Forum: News and Discussions - Replies (1)

i want to create a file object that any attempt to write just drops the data, never calling the system, and any attempt to read gets no data and simul..... More

Print this item

  hundreds of function
Posted by: Skaperen - Oct-25-2021, 05:28 PM - Forum: Bar - Replies (1)

i have written over a hundred functions in Python. i use most of them frequently in other projects. i want to release them for others to use. i'd l..... More

Print this item

  Python VLookup? Lookup Table?
Posted by: Nu2Python - Oct-25-2021, 02:20 PM - Forum: General Coding Help - Replies (3)

Hi All... can someone tell me an easy/efficient way in Python to create a lookup table that acts like Excel? My options are unlimited, but I cannot fi..... More

Print this item

  Unable to import sklearn after installing any package
Posted by: ilango - Oct-25-2021, 07:03 AM - Forum: General Coding Help - No Replies

Hi all,

We use miniconda as python package manager and install required packages using pip.
We have a Venv Py36. Recently we are facing an issue...... More

Print this item

  Including data files in a package
Posted by: ChrisOfBristol - Oct-24-2021, 07:33 PM - Forum: General Coding Help - Replies (4)

I want to create a binary package (Wheel) and possibly also a source package (tarball). I need to include a reference file and a help file. I believe ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Struggles I Faced While E... 59 minutes ago baffa_dbt MaxTranslate Code Review
  Willing to pay for help w... 9 hours ago braillescribe noisefloor General Codin...
  Create dataframe from the... 11 hours ago 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...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
Most views
  The best Prog... 580406
  Tutorial Requ... 519450
  Web Scraping ... 442778
  Newbie with P... 386979
  New Users Int... 386470
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
MaxTranslate Today
pizofreude Today
RockHound_Z12 Today
braillescribe Yesterday
aurelio12282025 Yesterday

User Panel Messages

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