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,279
» Latest member: Santoro
» Forum threads: 38,791
» Forum posts: 175,868

Full Statistics

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

Latest Threads
How Can Solo Indie Game D...
Forum: Game Development
Last Post: OtiliaBecker
3 hours ago
» Replies: 0
» Views: 18
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Yesterday, 02:10 PM
» Replies: 2
» Views: 90
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Yesterday, 06:48 AM
» Replies: 0
» Views: 31
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:59 AM
» Replies: 11
» Views: 5,984
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:46 AM
» Replies: 2
» Views: 4,282
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 296
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 142
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 207
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,112
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 254

 
  Get the filename from a path
Posted by: 12237ee1 - Jul-12-2020, 07:01 AM - Forum: General Coding Help - Replies (7)

I have a large text file which has a lot of links and I need python script to extract all the names of the files which end with .pdf format and sorted..... More

Print this item

  Generating all words of maximun length.
Posted by: MathCommander - Jul-12-2020, 05:01 AM - Forum: General Coding Help - Replies (4)

Hello! I am working in a python challenge wich requires to decipher SHA-1 hashes wich correspond to password of a maximun length of 5 characters. The ..... More

Print this item

  Why is wx.NO_BORDER changing panels within a frame
Posted by: MeghansUncle2 - Jul-12-2020, 02:56 AM - Forum: GUI - Replies (4)

In the code below (within wx.Frame.__init__) when I add "style=wx.NO_BORDER" the panels shrink to almost nothing.
Please run with and without this s..... More

Print this item

  Web Crawler's Crawling Ability
Posted by: samlee916 - Jul-12-2020, 02:43 AM - Forum: Web Scraping & Web Development - Replies (3)

How can I figure out how much a web crawler actually crawls on a website?

Print this item

  Input Error
Posted by: Dream - Jul-12-2020, 01:01 AM - Forum: General Coding Help - Replies (2)

Hello,im trying to do a youtube video downloader script,so i did this:
[python]import pytube
video_url = 'https://www.youtube.com/watch?v=4KcMdH8qiu..... More

Print this item

  python-chess question
Posted by: djf123 - Jul-11-2020, 10:47 PM - Forum: Data Science - Replies (2)

I am a fairly new Python user, and I was trying to use the python-chess module (documentation here: https://readthedocs.org/projects/python-chess/down..... More

Print this item

  two conditionals with intermediate code
Posted by: Skaperen - Jul-11-2020, 10:36 PM - Forum: General Coding Help - Replies (5)

i encounter this case a lot. in an elif sequence of code i need to perform 2 tests at one place. that often means an and or or between 2 tests. som..... More

Print this item

  reindex()
Posted by: Truman - Jul-11-2020, 09:26 PM - Forum: Data Science - Replies (2)

[python]import pandas as pd
import numpy as np
index = [('California', 2000), ('California', 2010),
('New York', 2000), ('New York', 2010)..... More

Print this item

  Too Enthusiastic project(?)
Posted by: Python_User - Jul-11-2020, 09:10 PM - Forum: General Coding Help - Replies (4)

Dear Python users,

I just started learning Python and I am wondered how many things can be done with this software. I purchased the book, “automate..... More

Print this item

  OCR to database
Posted by: Hakx77 - Jul-11-2020, 09:05 PM - Forum: General Coding Help - Replies (2)

So I am needing some help, I am new to python and programming in general but I am trying to use a raspberry pi to take a pic of a document then send i..... More

Print this item

  HELP- DATA FRAME INTO TIME SERIES- BASIC
Posted by: bntayfur - Jul-11-2020, 09:04 PM - Forum: Data Science - No Replies

Ok, so i have a data frame and i want to change it to time series.

[output]

Month Sales Inflation
0 1-Jan 266.0 1
1 2-Jan 14..... More

Print this item

  Syntax error
Posted by: bayouprophet - Jul-11-2020, 08:14 PM - Forum: General Coding Help - Replies (1)

Fairly new to Python, so I need help with the following:
I am getting a syntax error for parser = MyHTMLParser() and I can't figure out why?

#
#..... More

Print this item

  Column headers not aligning properly with table
Posted by: kenwatts275 - Jul-11-2020, 08:01 PM - Forum: GUI - Replies (3)

Hello all,
I cannot seem to get the column headers to align properly with my table.
The column headers have to be in a separate frame than the table, ..... More

Print this item

  get_absolute_url function not working?
Posted by: mp3909 - Jul-11-2020, 07:00 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

So I am using django 2.2.7 and following videos on youtube for learning Python Django.

My models.py file consists of a class for an Album object..... More


Attached Files

Thumbnail(s)
               
Print this item

  Dictionary based exercise
Posted by: garvind25 - Jul-11-2020, 06:25 PM - Forum: Homework - Replies (2)

Hi,

I am stuck with a problem and hoping someone can help.

How can I import data from a file and store them in a dictionary? I have a file named ‘..... More

Print this item

  Winsorized Mean and Standard Deviation
Posted by: Wheeliam - Jul-11-2020, 05:19 PM - Forum: General Coding Help - No Replies

Hi all, Smile

I have a slight problem. I need to winsorize the means and standard deviations in my code. The code is a modification of what I h..... More

Print this item

  Invert Pillow image colours
Posted by: chesschaser - Jul-11-2020, 12:54 PM - Forum: General Coding Help - Replies (5)

Hi guys!

I've been trying to invert the pixel colours of an image of Harry Potter for about 2 days now. I have a list of RGB tuples that make up each..... More

Print this item

  Hi, Keep postition of main window after iconify()
Posted by: delphinis - Jul-11-2020, 11:53 AM - Forum: GUI - Replies (3)

Hi,
i write an app using iconify after creating the window:

[code]
root = tk.Tk()
app = Window(root)
root.iconify()
#root.wm_withd..... More

Print this item

  use NULL as function parameter which is a pointer function?
Posted by: oyster - Jul-11-2020, 09:02 AM - Forum: General Coding Help - No Replies

Hi, I met a case in which NULL can be used as a C function's parameter which is actually a pointer function. I can't finger out how to do it, can anyo..... More

Print this item

  Beautiful Soup (suddenly) doesn't get full webpage html
Posted by: j.crater - Jul-11-2020, 08:47 AM - Forum: Web Scraping & Web Development - Replies (8)

Hello all,
few months ago I dabbled in Beautiful Soup for first time, so I still lack much understanding of the module and entire subject.
However, ..... More

Print this item

  Binary to decimal, print the decimal
Posted by: rs74 - Jul-11-2020, 08:04 AM - Forum: Homework - Replies (3)

Trying to print the decimal number after each row, no success. Is it correct to use a variable (decimal) and then print it?

[python]import random
..... More

Print this item

  How to to tie the execution of one process to another inside a loop in Python
Posted by: ignorant_wanderer - Jul-11-2020, 03:40 AM - Forum: General Coding Help - No Replies

How can I keep a loop going, while having some processes that are waiting for others inside the loop? (see the code below for clarification, it makes ..... More

Print this item

  Small Database Program (Need Help)
Posted by: thewetmosquito - Jul-11-2020, 03:06 AM - Forum: General Coding Help - Replies (3)

Hello Python community,

I'm new around these parts, and I've picked up on Python last week to begin understanding and writing working programs. I h..... More

Print this item

  How does a set in python store the elements?
Posted by: idknuttin - Jul-10-2020, 08:04 PM - Forum: General Coding Help - Replies (5)

I am coming learning python after working with c++ for a few years. In c++ when you insert into a set it orders the elements, I can't figure out why i..... More

Print this item

  Error while parsing tables from docx file
Posted by: aditi - Jul-10-2020, 08:04 PM - Forum: General Coding Help - Replies (1)

Hi all,
I am currently using Python3.6 and I am using the python-docx package to parse document files:
The code:

from docx import Document
my_d..... More

Print this item

  A couple of questions about counts/value_counts and pandas?
Posted by: Puxk - Jul-10-2020, 07:46 PM - Forum: Homework - No Replies

why does this work

df[df['TotalPayBenefits']== df['TotalPayBenefits'].max()]
but this gives an error

[python]df[df['TotalP..... More

Print this item

  Can anyone explain me whats happening here?
Posted by: Puxk - Jul-10-2020, 07:00 PM - Forum: Data Science - Replies (1)

I'm not sure if this goes in homework or datascience but it is related to pandas so here goes

df[df['TotalPayBenefits'].max()]
..... More

Print this item

  NameError for global variable
Posted by: leviporton - Jul-10-2020, 06:35 PM - Forum: General Coding Help - Replies (3)

I'm defining a variable in a if statement which to my knowledge should be a global variable.

[python]
try:
..... More

Print this item

  Convert Excel file to Text file
Posted by: marvel_plato - Jul-10-2020, 05:48 PM - Forum: General Coding Help - Replies (6)

Dear Python Community:

I am a new Python student trying to learn more about this incredible programming language. I hope you could help me teach how ..... More

Print this item

  gui and yhrinker buttoms
Posted by: rickadamson - Jul-10-2020, 05:40 PM - Forum: GUI - Replies (2)

I am new to python. Can't seem to get the button to run the script to generate random passwords. Using py 3.8 and windows 10
[python]
from tkinter i..... More

Print this item

  Simple fixed point iteration root finding in python
Posted by: DoctorSmiles - Jul-10-2020, 05:29 PM - Forum: Homework - Replies (3)

Hey all,

I recently have started a class that involves a bit of python programming and am having a bit of trouble on this question. The question as..... More

Print this item

  Screenshot web page !
Posted by: ABVSVL - Jul-10-2020, 03:57 PM - Forum: Web Scraping & Web Development - Replies (3)

How to take a screenshot from a website?
the visible part of the site I can take a screenshot.
How can I take a screenshot of an entire page (which ..... More

Print this item

  showing only desired part of a plot
Posted by: grknkilicaslan - Jul-10-2020, 03:16 PM - Forum: General Coding Help - Replies (1)

Hi,
I do simply have a plot but I need to show only a specific part of that plot. When I run the code below, it shows all possible results but I need..... More

Print this item

  I didnt get the NULL values
Posted by: salwa17 - Jul-10-2020, 02:54 PM - Forum: General Coding Help - No Replies

I want to extract the segment len from a TCP header so I made this code:

[python]def tcp_len_list(s):
a = [len(p[TCP].payload) if p.haslayer(T..... More

Print this item

  Erreur Code access violation reading 0x00000004
Posted by: yan_mhb - Jul-10-2020, 02:28 PM - Forum: General Coding Help - No Replies

Hello,

I code on the idle python version 3.8.3 and I receive this error message "OSError: exception: access violation reading 0x00000004" Angry..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Can Solo Indie Game D... 3 hours ago OtiliaBecker OtiliaBecker Game Developm...
  [SOLVED] [BeautifulSoup] ... Yesterday, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Yesterday, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... Yesterday, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... Yesterday, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
Most views
  The best Prog... 579184
  Tutorial Requ... 511885
  Web Scraping ... 442138
  Newbie with P... 386217
  New Users Int... 379106
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Santoro Today
OtiliaBecker Today
NAGASOWMYAGUNDU Yesterday
shipa1autotransport Yesterday
eastnoob 11-19

User Panel Messages

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