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,244
» Latest member: thebigback
» Forum threads: 38,777
» Forum posts: 175,800

Full Statistics

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

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
7 minutes ago
» Replies: 6
» Views: 151
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:37 AM
» Replies: 1
» Views: 66
Data Science
Forum: Data Science
Last Post: mamta25
Today, 05:27 AM
» Replies: 3
» Views: 2,582
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 156
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 147
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 144
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,433
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,386
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,586
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 222

 
  AttributeError: 'list' object has no attribute 'values'
Posted by: ilknurg - Jan-19-2022, 07:50 AM - Forum: General Coding Help - Replies (4)

I have a query. My query returns the result that i want as a dictionary.

Like:

[python][{'community_string': 'public'}, {'community_string': 'p..... More

Print this item

  Calling a base class variable from an inherited class
Posted by: CompleteNewb - Jan-19-2022, 05:39 AM - Forum: General Coding Help - Replies (3)

I have this little program

[code]
class Generic_Player:

def __init__(self):
self.hit = True

def Bust(self):
print(..... More

Print this item

  displaying empty list
Posted by: vlearner - Jan-19-2022, 05:34 AM - Forum: General Coding Help - Replies (5)

I want to fetch all the respective ID's from the given text file but it is giving me empty list. kindly help me in this.

[python]
with open('json-..... More


Attached Files

.txt   json-data.txt (Size: 582 bytes / Downloads: 308)
Print this item

  nsimplify, make zero the really small numbers in the matrix
Posted by: quest - Jan-19-2022, 05:22 AM - Forum: General Coding Help - Replies (5)

I created a symbolic matrix with sympy:

[python]
states = [1,2,3,4,5,6,7,8]
rho = np.array([[sympy.Symbol("rho{}{}".format(i,j)) for j in range(len(s..... More

Print this item

  A python library to create html (domonic)
Posted by: domonic - Jan-18-2022, 10:12 PM - Forum: Code sharing - No Replies

Hi there, nice place. I tried to join last year but it wouldn't let me.

I've been working on a pure python dom in my spare time for learning and pr..... More

Print this item

Question about Numpy indexing.
Posted by: water - Jan-18-2022, 07:54 PM - Forum: Data Science - Replies (1)

a = np.arange(25).reshape(5, 5)
a
[output]
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 1..... More

Print this item

  Can a variable equal 2 things?
Posted by: Extra - Jan-18-2022, 06:42 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm looking to add a text input for my voice assistant in case a mic isn't around.
So if a mic isn't available I'd like to be able to switc..... More

Print this item

  Processing "I am not a spammer" with requests
Posted by: rhubarbpieguy - Jan-18-2022, 05:09 PM - Forum: Web Scraping & Web Development - Replies (1)

I'd like to download all posts from a support site. Can I process the "I am not a spammer" button using requests?

The site has a search feature bu..... More

Print this item

  Tkinter and lambda
Posted by: Cristopher - Jan-18-2022, 03:54 PM - Forum: General Coding Help - Replies (4)

I'm trying to make a button with a simple function with a variable defined in another function. I want the program to check if the key the user entere..... More

Print this item

  File not appending
Posted by: Nu2Python - Jan-18-2022, 03:51 PM - Forum: General Coding Help - Replies (3)

Hi All,

I have been testing a small program for a little while now and recently noticed that the program was not logging any data to my text file. ..... More

Print this item

  Show empty categories in catplot with boxplots
Posted by: PBRM - Jan-18-2022, 02:32 PM - Forum: Data Science - No Replies

I have a dataframe like:

ID * Period * value-system
1 * 2021-11 * 1010
2 * 2021-11 * 0
3 * 2021-11 * 988
4 ..... More


Attached Files

Thumbnail(s)
   
Print this item

  mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python
Posted by: ilknurg - Jan-18-2022, 12:51 PM - Forum: General Coding Help - Replies (3)

Hi everyone. Im a newbie in python.
I have the code below. Im on ubuntu 18.04. the variable "output " is a json data in my code.

[python]
import..... More

Print this item

  How to set Tab size to 4 in Python interpreter?
Posted by: zzzhhh - Jan-18-2022, 11:08 AM - Forum: General Coding Help - Replies (1)

How to set Tab size to 4 in Python interpreter? I am using Python 3.9.5 interpreter in miniconda3 on Windows 10. Thanks.

Print this item

  readline.parse_and_bind() does not work in start-up script of Python interpreter
Posted by: zzzhhh - Jan-18-2022, 11:05 AM - Forum: General Coding Help - No Replies

I created a startup script file

[python]import readline
readline.parse_and_bind("set disable-completion on")
readline.parse_and_bind("tab: se..... More

Print this item

  datatype check
Posted by: arkiboys - Jan-18-2022, 08:49 AM - Forum: General Coding Help - Replies (1)

Hello,
using synapse pipeline, I generate a .parquet file with data in columns such as HoseNo (Which contains numbers), ClientName (which contains te..... More

Print this item

  How to parse a live feed in Python?
Posted by: Daring_T - Jan-18-2022, 04:07 AM - Forum: General Coding Help - Replies (2)

I am using the subprocess.run() to run handbrakecli to compress a media folder. Whenever I run the command I get a live data feed every 1/2 second in ..... More

Print this item

  PyQt6 Version of weather app
Posted by: menator01 - Jan-18-2022, 02:00 AM - Forum: Code sharing - Replies (3)

This is my attempt at a pyqt6 version of a weather app. It gets its data from forecast.weather.gov. I plan on adding an extended feature soon.

[pyt..... More

Print this item

  How to summarize survey requirement data?
Posted by: data_wiz_5 - Jan-17-2022, 05:14 PM - Forum: Data Science - No Replies

Hi All,
I’m currently trying to find out an algorithmic approach to find the most in demand profile group for a set of survey data, this is example of..... More

Print this item

  Avoid multiple repeat in indent
Posted by: Frankduc - Jan-17-2022, 04:35 PM - Forum: General Coding Help - Replies (8)

Hello,

I am trying to count the number of pairs but in the end i only want the variable count give the total.

[python]import itertools

lim = ..... More

Print this item

  input function question
Posted by: barryjo - Jan-17-2022, 04:11 PM - Forum: General Coding Help - Replies (12)

I am going crazy and spent hours on this.
it seems my input function does not work.

I have a two line program

[python]x = input()
print(x)[/p..... More

Print this item

  Trying to change BLE name on pi
Posted by: korenron - Jan-17-2022, 12:08 PM - Forum: General Coding Help - No Replies

Hello,
I'm trying to make an app that will change the BLE name on command
this is what I have done:
[python]
"""Example of how to create a Periphera..... More

Print this item

  New Features In WP5.9 ; What Happens If One Sticks To A Old Theme?
Posted by: apollo - Jan-17-2022, 11:07 AM - Forum: Bar - Replies (1)

dear community, Smile

well honestly - this has nothing to do with Python - nothing with an IDE or with setup of Python on Linux or a Win-box. ..... More

Print this item

Photo homework - how make contrast stretching?
Posted by: tavadani - Jan-17-2022, 10:36 AM - Forum: Homework - No Replies

Hy guys.
I have a homework :

Write a program that gets a filename for its input, then looks for these human faces and prints each one in a separat..... More

Print this item

  How to check if a list is in another list
Posted by: finndude - Jan-17-2022, 09:33 AM - Forum: General Coding Help - Replies (4)

Hi All,

I have the below code:

[python]list_1 = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]

win_1 = ["1", "2", "3", "4"]

if win_1 ..... More

Print this item

  Help with output from if statement
Posted by: fgaascht - Jan-17-2022, 09:00 AM - Forum: General Coding Help - Replies (6)

Hi,

I recently started learning Python programming and develop my skills by working on some various "script" to help me in my work as biologist.
..... More

Print this item

  Getting the maximum value:key pair from a dictionary
Posted by: sean1 - Jan-17-2022, 08:52 AM - Forum: General Coding Help - Replies (2)

I have a dictionary with 40 student names and their respective math scores {'Ines': 78, 'Mary': 42, 'Molly': 72, 'Maria': 83,} . How do I get Python t..... More

Print this item

  need help with input
Posted by: itguy - Jan-17-2022, 06:47 AM - Forum: General Coding Help - Replies (4)

I have written / modified a random password generator, and I need help with 1 part .

The part I need help with is:
if the user presses enter (leav..... More

Print this item

  how to port over data from a Calc-Table to a Calendar-Template - effectively
Posted by: apollo - Jan-17-2022, 12:59 AM - Forum: Bar - Replies (3)

hello dear Python-experts. Smile



today i have a question that has to to with calc. - i want to create a calendar - i have the following da..... More


Attached Files

Thumbnail(s)
   
Print this item

  Else
Posted by: lucasteixeira - Jan-17-2022, 12:44 AM - Forum: General Coding Help - Replies (1)

Does anyone know a python code in which the else facilitates the flow of the program or is essential in some way, for example without the code getting..... More

Print this item

Question Securing State Constitutions (USA) from University of Maryland > MariaDB .sql
Posted by: BrandonKastning - Jan-17-2022, 12:29 AM - Forum: Web Scraping & Web Development - Replies (1)

Securing State Constitutions (USA) from University of Maryland > MariaDB .sql

I have downloaded all State Constitutions in .txt forma..... More

Print this item

  How to convert 4 bytes to an integer ?
Posted by: GiggsB - Jan-16-2022, 11:53 PM - Forum: General Coding Help - Replies (11)

Hi, I am using SPI on Raspberry Pi (master) and collecting 4 bytes at a time. I need to convert this back to integer. How can I do it?
When I do it u..... More

Print this item

Question Securing King James Bible (KJV) + King James Bible 1611 (KJV1611) in MariaDB/MySQL
Posted by: BrandonKastning - Jan-16-2022, 10:54 PM - Forum: Web Scraping & Web Development - Replies (4)

Securing King James Bible (KJV) + King James Bible 1611 (KJV1611) in MariaDB/MySQL

I have the need to have King James Bible (KJV) in ..... More

Print this item

  automatically printing
Posted by: homg1968 - Jan-16-2022, 08:08 PM - Forum: General Coding Help - Replies (3)

When I am photographying at an event, I need to print as I take the image.
When I photograph, I connect a cable from the camera to my macbook Pro(tet..... More

Print this item

  General Knowledge Quiz in Python
Posted by: Cristopher - Jan-16-2022, 06:45 PM - Forum: Code sharing - Replies (1)

I've made a general knowledge quiz in Python with 10 multiple-choice questions. If you are bored or are up for a little game, this may be fun to play...... More

Print this item

  how do I return Max Test result + corresponding student name from an excel dataset?
Posted by: sean1 - Jan-16-2022, 02:54 PM - Forum: General Coding Help - Replies (3)

I have a dataset with column headers Student name, ID, Nationality and several test scores (one col per subject.) I have converted the columns to list..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 7 minutes ago tsgiannis Gribouillis GUI
  [split] print two differe... Today, 05:37 Reema Gribouillis General Codin...
  Data Science Today, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [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
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578746
  Tutorial Requ... 509492
  Web Scraping ... 441878
  Newbie with P... 385845
  New Users Int... 375433
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+ 12102
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
thebigback Today
dimitriwati Today
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today

User Panel Messages

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