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,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,822

Full Statistics

Online Users
There are currently 42 online users.
» 0 Member(s) | 37 Guest(s)
Google, Bing, Apple, AOL

Latest Threads
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 2
» Views: 59
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 12:09 PM
» Replies: 4
» Views: 119
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 210
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 334
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 295
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 130
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,627
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 223
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 213
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,559

 
  [solved] Sort list
Posted by: paul18fr - Jul-09-2021, 05:21 PM - Forum: General Coding Help - Replies (5)

Hi

I've been trapped by names I've been getting in a list; I spent some time in looking in internet to find a way; in the current example, I want t..... More

Print this item

  Clicking Every Page and Attachment on Website
Posted by: shoulddt - Jul-09-2021, 11:44 AM - Forum: General Coding Help - Replies (1)

Hello,
I need to develop a code that navigates to a website and then finds all possible pages on the site and clicks on them. Also, I would like it t..... More

Print this item

  python 3: TypeError: a bytes-like object is required, not 'str'
Posted by: wardancer84 - Jul-09-2021, 08:37 AM - Forum: General Coding Help - Replies (3)

hey all,

i know this might be a dull question, but i dont get it...

this works in python2

[python]#!/usr/bin/env python

import subprocess..... More

Print this item

  Using Excel Cell As A Variable In A Loop
Posted by: knight2000 - Jul-09-2021, 07:10 AM - Forum: General Coding Help - Replies (7)

Hey guys,

In trying to learn more about webscraping and as such I've set myself a challenge to try and scrape data off a few pages within the same ..... More

Print this item

  semantics of open(buffering=-1) ?
Posted by: Skaperen - Jul-09-2021, 12:26 AM - Forum: News and Discussions - Replies (4)

the library reference manual shows for open() that the keyword argument buffering= has a default value of -1. it does not explai..... More

Print this item

  PyPI XMLRPC Search Disabled
Posted by: Skaperen - Jul-08-2021, 10:43 PM - Forum: News and Discussions - Replies (4)

it's been a while since they made this decision. are they working on a way to do this more efficiently than XMLRPC ?

Print this item

  Encountering `importlib_metadata.PackageNotFoundError` trying to run console script
Posted by: gretchenfrage - Jul-08-2021, 09:26 PM - Forum: General Coding Help - No Replies

# Background

I have a pipenv workspace which is structured like this:

[code]
|- Pipfile
|- Pipfile.lock
|- assetdb-SNAPSHOT/
|- setup.py..... More

Print this item

  Help i don't know how to fix this
Posted by: izmamonke - Jul-08-2021, 04:00 PM - Forum: General Coding Help - Replies (2)

Hi im new on pygame programming and when I want to make the "world" variable with the "World" class it gives me error how can I fix it?
[python]impo..... More

Print this item

  An IF statement with a List variable
Posted by: dedesssse - Jul-08-2021, 02:54 PM - Forum: General Coding Help - Replies (3)

I'm trying to make it so if i enter a "Woman, girl or lady it will do the if statement

[python]isfemale = ["woman", "girl", "lady", ]
isfemale = i..... More

Print this item

  CyperSecurity Using Python HomeWork
Posted by: ward1995 - Jul-08-2021, 02:33 PM - Forum: Homework - Replies (1)

I Need Help in This Exercises Please

Final exercise in the Network Infrastructure Programming course - 5741
1 Mission
Write / write a program in ..... More

Print this item

  Extract Href URL and Text From List
Posted by: knight2000 - Jul-08-2021, 11:32 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello all,

I'm new to Python and I'm trying to practice some webscraping by challenging myself to try to extract various elements from different w..... More

Print this item

  How to redraw an existing image to a different image TkInter
Posted by: zazas321 - Jul-08-2021, 10:22 AM - Forum: GUI - Replies (6)

Hello. I have a tkinter application running and I am trying to come up with a solution. I will explain the scenario briefly:

On my tkinter applicat..... More

Print this item

  The CSV is not been properly created.
Posted by: tsurubaso - Jul-08-2021, 01:24 AM - Forum: General Coding Help - Replies (4)

https://pastebin.com/z82Pv9Wm

Hello to all I hope you are all well.

I have not a super level in Python, surviving barely.
My program was workin..... More

Print this item

  Building Mapnik for a pyenv python.
Posted by: Larz60+ - Jul-07-2021, 11:29 PM - Forum: Bar - No Replies

Mapnik is a package that displays images with maps generated by openstreetmap, or in my case Switch2osm.
it's home page is https://mapnik.org/.
It i..... More

Print this item

  GJL Summer Jam - Showcase your skills to industry professionals!
Posted by: WanderingOwl - Jul-07-2021, 09:25 PM - Forum: News and Discussions - No Replies

Games Jobs Live is excited to announce the next Game Parade game jam, kicking off on Sunday 11th July! The jam lasts a week, but you'll be able to su..... More

Print this item

  sqlite3 insert date
Posted by: rwahdan - Jul-07-2021, 08:31 PM - Forum: GUI - Replies (1)

Hi,

I have a table that has thedate field with text data type. I am trying to insert current date:

[python]
c2.execute("INSERT INTO exam_re..... More

Print this item

  Partial Matching Rows In Pandas DataFrame Query
Posted by: eddywinch82 - Jul-07-2021, 07:40 PM - Forum: General Coding Help - Replies (1)

Hi there,

I have the following Part of a Python Code, which deletes DataFrame Rows from the last three Urls, if there is matching Data in the first..... More

Print this item

  ASCII-Codec in Python3 [SOLVED]
Posted by: AlphaInc - Jul-07-2021, 06:15 PM - Forum: General Coding Help - Replies (6)

Hello everyony,

I have a Python-Script which worked fine under Python2 but when I try to run it in Python3 I get the following error:

[python]Tr..... More

Print this item

  requesting help for a faster alternative of pd.groupby
Posted by: zollen - Jul-07-2021, 05:29 PM - Forum: General Coding Help - Replies (1)

I am new to python. I have two panda dataframes, they need to be merged conditionally.

[python]
group= df.groupby(['index1', 'index2'])['counts']...... More

Print this item

  python prints none in function output
Posted by: chairmanme0wme0w - Jul-07-2021, 04:24 PM - Forum: General Coding Help - Replies (3)

i'll attach screenshots but basically i'm making a text-based adventure game for my bridging work for sixth form and idk just look i've tried like ret..... More


Attached Files

Thumbnail(s)
       
Print this item

  Scaling text QLabel following display mode windows '100%, 125% ...)
Posted by: VIGNEAUD - Jul-07-2021, 03:56 PM - Forum: GUI - Replies (2)

Hello

I developed (I'm starting) a small application in python with qlabel (qt) widget objects.

So I set a font for these labels but when I swit..... More

Print this item

  Need help converting string to int
Posted by: dedesssse - Jul-07-2021, 03:48 PM - Forum: General Coding Help - Replies (7)

I'm trying to convert strings to numbers, to multiply both numbers, when i print it out.. It still warns me its 2 strings
[python]num = input("Enter ..... More

Print this item

  Library for wavelet transformation
Posted by: erdemath - Jul-07-2021, 03:39 PM - Forum: Data Science - Replies (2)

Hello all,

I am looking for a library for wavelet transformation. In particular, I need to collect the respective wavelet transformation coefficien..... More

Print this item

Question Dataframe: comparing value in last row vs the row before last
Posted by: lorensa74 - Jul-07-2021, 01:47 PM - Forum: General Coding Help - Replies (2)

Is the following a valid code? I am simply trying to compare the contents of the previous row vs the 2nd previous row.

[python]if row['DIRECTION']...... More

Print this item

  Emailed passwords
Posted by: ndc85430 - Jul-07-2021, 11:28 AM - Forum: Board - Replies (4)

I had to reset my password today and after going through the process, I got an email with a new password in. Why is that? Are passwords really stored ..... More

Print this item

  passing php variable to python file
Posted by: jerald - Jul-07-2021, 09:11 AM - Forum: General Coding Help - Replies (1)

I have a php file that pass file name as string variable to python. And once the python receive the string variable it will open the file based on the..... More

Print this item

  sqlite3 check last record
Posted by: rwahdan - Jul-07-2021, 07:48 AM - Forum: GUI - Replies (1)

I have many records in table and I have the field enabled that can be either yes or no. I am making select statement that gets all records with enable..... More

Print this item

  How do I read in a Formula in Excel and convert it to do the computation in Python?
Posted by: JaneTan - Jul-07-2021, 07:36 AM - Forum: General Coding Help - Replies (2)

I have a table of time-series data downloaded from some system. Say it is the revenue data for different persons across time. Eg below

Table 1
| ..... More

Print this item

  Fit np.polyfit to data points
Posted by: Laplace12 - Jul-07-2021, 06:08 AM - Forum: General Coding Help - Replies (3)

Hey! Trying to get polyfit working. I want to fit a 2nd order polynomial to some data points, but the code returns no plot. All x10, x11, y10, etc. va..... More

Print this item

  mouse library demands root access
Posted by: ineuw - Jul-07-2021, 03:31 AM - Forum: General Coding Help - Replies (2)

Using either pip3 install mouse and sudo pip3 install mouse generate the following error when importing the library into a script (Autok..... More

Print this item

  Help with reading json file
Posted by: hhchenfx - Jul-07-2021, 01:34 AM - Forum: General Coding Help - Replies (5)

Hi,
Can anyone help me to review this short code below that read json data from url?
I am not sure why it give error.
Thank you,
HHC

[inline]d..... More

Print this item

  immutable types
Posted by: Skaperen - Jul-07-2021, 12:08 AM - Forum: News and Discussions - Replies (2)

we have a couple immutable types. why no immutable dictionaries? yeah, yeah we have named tuples. but those are awkward to create. it should be as..... More

Print this item

  Importing a function from another file runs the old lines also
Posted by: dedesssse - Jul-06-2021, 05:53 PM - Forum: General Coding Help - Replies (6)

I'm trying to import a function, an "def" function, to a new file, but when i do, the old line ABOVE are also read. Why!?

Print this item

  PIL module and Python 2.7 under Windows 10
Posted by: Lad - Jul-06-2021, 04:58 PM - Forum: News and Discussions - Replies (3)

Hello,
is PIL module for Windows 10 and Python 2.7 available?
Thanks

Print this item

  Checking the number of arguments a function takes
Posted by: Chirumer - Jul-06-2021, 04:18 PM - Forum: General Coding Help - Replies (3)

user_func is a function with either 1 or 2 parameters.
What's the best way to call the function with 2 parameters if it supports it, or call it with 1..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  why is the image not show... 8 hours ago sarbogast deanhystad General Codin...
  New to python and coding Yesterday, 12:09 lary_p jefsummers Homework
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 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...
Most views
  The best Prog... 578885
  Tutorial Requ... 510037
  Web Scraping ... 441929
  Newbie with P... 385941
  New Users Int... 376559
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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