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,964
» Latest member: Edzed4431
» Forum threads: 38,729
» Forum posts: 175,542

Full Statistics

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

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
1 hour ago
» Replies: 1
» Views: 449
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
6 hours ago
» Replies: 4
» Views: 1,979
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,554
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 454
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 909
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 939
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,208
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,823
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Sep-26-2025, 03:53 AM
» Replies: 1
» Views: 2,859
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-25-2025, 01:49 PM
» Replies: 2
» Views: 738

 
  Pandas DataFrame visual
Posted by: Truman - Jul-04-2020, 09:55 PM - Forum: Data Science - Replies (8)

[python]
import pandas as pd
area = pd.Series({'California': 423967, 'Texas': 695662,
'New York': 141297, 'Florida': 170312,
..... More

Print this item

  Improve performance
Posted by: squag - Jul-04-2020, 08:37 PM - Forum: Game Development - Replies (4)

Python beginner here. I coded waves / tides washing up on a beach. The "resolution" of the image depends on the value assigned to the "squaresize" var..... More

Print this item

  Decorator is using in class,but not working
Posted by: mbilalshafiq - Jul-04-2020, 08:19 PM - Forum: Homework - Replies (2)

[python]
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 22 23:46:47 2020

@author: Lenovo
"""
import pdb
import unittest
import math

class..... More

Print this item

Photo Help with Account login in Python
Posted by: Daku_Chishiki - Jul-04-2020, 06:07 PM - Forum: Homework - Replies (6)

Hi! I just start learning Python and I wanted to push myself and try to make a little program that will verify the user position, userid and password ..... More

Print this item

  error when trying to update mongodb
Posted by: damian0612 - Jul-04-2020, 03:49 PM - Forum: Web Scraping & Web Development - Replies (6)

I am working with flask trying to update a mongodb collection which works fine when I state the fieldname that needs updated, but I want to fieldname ..... More

Print this item

  macOS GUI
Posted by: pythonnewbi - Jul-04-2020, 01:04 PM - Forum: GUI - Replies (5)

I'd like to learn Python.

Is there a forum on Jython or do I need to find a Java forum?

I have a Mac laptop & a Mac desktop. I know that an olde..... More

Print this item

  Python Custom Module not working in Jupyter Notebook with Pandas
Posted by: fid - Jul-04-2020, 11:05 AM - Forum: Data Science - No Replies

Hi Guys,


I have made a custom code in Python that i was to apply to a spreadsheet with Jupyter Notebook.

I get the following error code and do..... More

Print this item

  newbie needs help with space invaders
Posted by: n0x - Jul-04-2020, 10:15 AM - Forum: Game Development - Replies (2)

So I've been working on my space invaders but I can't figure out how I have to solve that the bullet would stay on the same x coordinate when I press ..... More

Print this item

  Compile to Windows exe.
Posted by: SpongeB0B - Jul-04-2020, 07:42 AM - Forum: General Coding Help - Replies (6)

Hi everyone,

I'm looking for a compiler to complie .py to one single windows .exe (the compiler will run under windows also)

I've try already [b..... More

Print this item

  Not getting the return value
Posted by: rs74 - Jul-04-2020, 07:36 AM - Forum: General Coding Help - Replies (4)

Having some issues with return. Would like to get the return value (middle number) printed after "Middle number is ". Something obvious I presume but ..... More

Print this item

  Using matplotlib in Spyder v/s REPL
Posted by: peterjv26 - Jul-04-2020, 07:09 AM - Forum: General Coding Help - Replies (2)

Hi, I am just starting off with Python and was playing around with matplotlib package.
I wrote a few lines as below to plot a graph
[python]
def pl..... More

Print this item

  [tkinter] color change for hovering over button
Posted by: teacher - Jul-04-2020, 04:33 AM - Forum: GUI - Replies (4)

The following code will not work as intended. It only turns yellow when leaving the button but not red when entering. What am I missing?

[python]im..... More

Print this item

  How to reuse positional arguments entered in terminal.
Posted by: rcmanu95 - Jul-04-2020, 12:44 AM - Forum: General Coding Help - Replies (1)

Hello Guys, quick question from a beginner. I am learning about the module argparse and I wanted to know about this code. You see the positional argum..... More

Print this item

  eml file data extraction
Posted by: ajetrumpet - Jul-04-2020, 12:12 AM - Forum: General Coding Help - Replies (2)

I have kind of a unique situation here guys. I have 1000 dbx files, which are from outlook express. each one of these files contains ''x'' email mes..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to erase previous output from the canvas?
Posted by: Pedroski55 - Jul-03-2020, 11:34 PM - Forum: GUI - Replies (4)

I'm tinkering with tkinter. I have this to make a window. It takes an input and displays the input text as output.

[python]def myWindow1():
windo..... More

Print this item

  time complexity of int
Posted by: Skaperen - Jul-03-2020, 11:18 PM - Forum: News and Discussions - Replies (6)

what is the big O formula time complexity for various operators with type int?

Print this item

  Newbie wanting to install Python
Posted by: tony202 - Jul-03-2020, 09:44 PM - Forum: News and Discussions - Replies (3)

Hi

I'm new to Python and honestly not sure where to start. I want to install Python but not sure what to install.

I have seen Pycharm. Ultimatel..... More

Print this item

  Creating a link that takes the user to a random page
Posted by: card51shor - Jul-03-2020, 09:36 PM - Forum: Homework - Replies (9)

Hey guys so I've been making some steps in my Wikipedia project but, as always, I run into mental roadblocks and I really need your stimulation to get..... More

Print this item

  oocollage - functions to glue instances together
Posted by: Gribouillis - Jul-03-2020, 08:51 PM - Forum: Code sharing - No Replies

Here is a piece of code that I wrote in 2014 and never published, a couple of functions to create ..... More

Print this item

  How do I get full XPath extract using Python?
Posted by: MDRI - Jul-03-2020, 08:43 PM - Forum: General Coding Help - Replies (1)

How do I get full XPath extract using Python?
=====================================

Thanks for your response to my threads.

I am trying to use ..... More

Print this item

  Web Scraping with Yahoo Finance
Posted by: miloellison - Jul-03-2020, 07:57 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello fellow Python users,

I'm currently working on a program revolving around gathering company data with webscraping, but a part of the program h..... More

Print this item

  How to place global tk text widget in class or on canvas
Posted by: puje - Jul-03-2020, 07:33 PM - Forum: GUI - Replies (1)

I´m making a GUI with an analysis page, where you can drag lines on different plots and get the differences in x position of the lines. I want to some..... More

Print this item

  Run script on startup in Debian with systemd?
Posted by: MrGlasspoole - Jul-03-2020, 03:38 PM - Forum: General Coding Help - Replies (5)

I'm trying to run Peppy player on startup in Debian 10: https://github.com/project-owner/Peppy.doc/wiki/Expert

Since rc.local is deprecated I'm try..... More

Print this item

  writing data to a csv-file
Posted by: apollo - Jul-03-2020, 02:08 PM - Forum: General Coding Help - Replies (1)

Hi there - good day dear python-experts,


i am just trying to get more python-skills.

today i am working on the csv-saving of data.


wh..... More

Print this item

  MUSIC QUIZ
Posted by: charlieroberrts - Jul-03-2020, 01:56 PM - Forum: General Coding Help - Replies (2)

Hello

I am currently coding a music quiz game. Here is my current code.

[python]pop00_tries_left = 2
score = 0

while pop00_tries_left > 0:
..... More

Print this item

  Limiting valid values for a variable in a class
Posted by: WJSwan - Jul-03-2020, 01:05 PM - Forum: General Coding Help - Replies (5)

Is it possible to limit the values of a variable of a class? Say I have a class Vehicle with variables Type, Make, Model, etc and I want to limit the ..... More

Print this item

  How to save predictions made by an autoencoder
Posted by: Glasgow1988 - Jul-03-2020, 12:39 PM - Forum: Data Science - No Replies

I've been practicing with this template for image reconstruction using an autoencoder:

..... More

Print this item

  Lambda function not return value
Posted by: mbilalshafiq - Jul-03-2020, 12:15 PM - Forum: Homework - Replies (4)

[python]
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 22 23:46:47 2020

@author: Lenovo
"""
import pdb
import unittest
import math

class..... More

Print this item

  Counting vowels in a string (PyBite #106)
Posted by: Drone4four - Jul-03-2020, 10:42 AM - Forum: General Coding Help - Replies (4)

I’m trying to count the number of vowels contained inside Tim Peter’s famous “Zen of Python” prose. I didn’t get it on my first attempt (with a for lo..... More

Print this item

  Nested CV
Posted by: rsoto31 - Jul-03-2020, 09:37 AM - Forum: Data Science - No Replies

Hi all,

I was wondering whether any knew a way to perform nested CV using each one of the tuning parameters specified with GridSearchCV. At the mom..... More

Print this item

  matplotlib multithreading
Posted by: catosp - Jul-03-2020, 09:33 AM - Forum: General Coding Help - No Replies

Hello!

I have the following problem:

I cannot live plot in a different thread, the main window (plot window) is white with a rotating doughnut m..... More

Print this item

  Try-except in while loop: error with closing program
Posted by: Lupin_III - Jul-03-2020, 09:29 AM - Forum: General Coding Help - Replies (7)

Hi, I have this code that includes a sort of watch dog within a try block inside a while loop
I don't understand two things:
1) why sometimes, not a..... More

Print this item

  Iterating over dictionaries with the namedtuple function (PyBite #108)
Posted by: Drone4four - Jul-03-2020, 09:01 AM - Forum: Homework - Replies (7)

I’m learning how to use the functionnamedtuple() found in the collections module / library.

Here is the exercise that I am grappling with:

[quote]..... More

Print this item

  Dictionary lookups exercise (PyBite #109)
Posted by: Drone4four - Jul-03-2020, 08:10 AM - Forum: Homework - Replies (14)

I’m learning how to evaluate value-key pairs in a given dictionary.

Here is the exercise from the online course (not for credit):

[quote]First t..... More

Print this item

  What units does the width parameter of a tkinter Listbox use?
Posted by: Pedroski55 - Jul-03-2020, 07:18 AM - Forum: GUI - Replies (2)

I am tinkering with tkinter, trying to get the feel of it.

I make a nice window:

[python]def myApp():
root = Tk()
root.title("Scrollba..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 1 hour ago GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 6 hours ago arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
Most views
  The best Prog... 577188
  Tutorial Requ... 500136
  Web Scraping ... 440891
  Newbie with P... 384902
  New Users Int... 369153
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 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Edzed4431 Yesterday
chaoh1911 Yesterday
KaydenJonah098 Yesterday
carlbidwell Yesterday
llarkin6 09-26

User Panel Messages

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