Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,936
» Latest member: MihaiPope
» Forum threads: 38,723
» Forum posts: 175,511

Full Statistics

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

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
1 hour ago
» Replies: 2
» Views: 178
FAST,SECURE AND RELIABLE ...
Forum: Game Development
Last Post: MihaiPope
2 hours ago
» Replies: 0
» Views: 61
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
2 hours ago
» Replies: 10
» Views: 3,627
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
8 hours ago
» Replies: 1
» Views: 3,304
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
10 hours ago
» Replies: 4
» Views: 586
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,030
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 940
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,170
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,195
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,288

 
  compression module for lz4?
Posted by: Skaperen - Oct-27-2021, 12:06 AM - Forum: General Coding Help - Replies (1)

i would like to know if there is a module for decompressing the lz4 compression found in the Debian/Ubuntu "[font=Courier New][b]..... More

Print this item

  Python Coding
Posted by: kshtriyadin1994 - Oct-26-2021, 11:10 PM - Forum: General Coding Help - Replies (4)

Need Help in python code for below conversion:

"()" => "00"
")(" => "-11"
"((a) => "10a0"
"(a(b)c) => "0a0b0c"
"()a((((" => "00a1111"

Print this item

  Review on (new) Python module: Function but Lazy Python
Posted by: jeertmans - Oct-26-2021, 10:18 PM - Forum: Code Review - Replies (3)

Hello everyone, I have recently been working on a Python module and I wanted to have some feedback on it.

I really enjoy Python's syntax, except fo..... More

Print this item

  Join dataframes... So simple but I can't work it out!
Posted by: snakes - Oct-26-2021, 09:28 PM - Forum: General Coding Help - Replies (1)

I have a dataframe which contains NaNs. I've copied the rows with NaNs and used a DecisionTreeRegressor to predict the missing data. Now, I want to jo..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 1 hour ago arbiel arbiel General Codin...
  FAST,SECURE AND RELIABLE ... 2 hours ago MihaiPope MihaiPope Game Developm...
  403 Error 2 hours ago CaptainNewb CaptainNewb Web Scraping ...
  Scraping a page with log ... 8 hours ago iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 10 hours ago Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576221
  Tutorial Requ... 497855
  Web Scraping ... 440157
  Newbie with P... 383998
  New Users Int... 366670
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
MihaiPope Today
Baran12332 Today
Hershien Today
Diyaseating Today
marineoman Today

User Panel Messages

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