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,277
» Latest member: NAGASOWMYAGUNDU
» Forum threads: 38,790
» Forum posts: 175,867

Full Statistics

Online Users
There are currently 33 online users.
» 1 Member(s) | 27 Guest(s)
Bing, Applebot, Google, Mojeek, kshahzad1985

Latest Threads
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
5 hours ago
» Replies: 2
» Views: 76
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Today, 06:48 AM
» Replies: 0
» Views: 22
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Today, 04:59 AM
» Replies: 11
» Views: 5,971
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Today, 04:46 AM
» Replies: 2
» Views: 4,281
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:34 PM
» Replies: 3
» Views: 283
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:03 AM
» Replies: 1
» Views: 132
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 202
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,106
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 245
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 166

 
  Regression with pipeline and GridSearch
Posted by: patite - Jul-31-2020, 01:40 PM - Forum: Data Science - No Replies

Hello
I am implementing a pipeline with GridSearch
I'm using the Boston housing dataset
Here is my code
[python]
X, y = load_boston(return_X_y=Tr..... More

Print this item

  basic random number generator in replace function
Posted by: krug123 - Jul-31-2020, 12:40 PM - Forum: General Coding Help - Replies (2)

Hey, I'm new to python and wanted to know how can I integrate a pseudo-random number generator to a replace function
for example how do I input somet..... More

Print this item

  Cycle of numpy variables
Posted by: Zero01 - Jul-31-2020, 11:58 AM - Forum: General Coding Help - No Replies

This script needs refining, at present it outputs a text file which I feed into a Windows cmd shell to create and output files, using an image process..... More

Print this item

  PIL Image / python-resize-image AttributeError
Posted by: sallyjc81 - Jul-31-2020, 11:34 AM - Forum: General Coding Help - Replies (1)

Hi, I am getting an Attribute Error when using the PIL mage module. Not sure what the cause is as the no attribute of 'upper' is not written in the co..... More

Print this item

  ImportError:DLL Load Failed after importing scipy.sparse.linalg
Posted by: sea_jam - Jul-31-2020, 01:54 AM - Forum: General Coding Help - No Replies

Hello,

I am attempting to create a build of python2.7 along side a build of python3.8 since I require both for a project that I need to complete. I..... More

Print this item

  anyone here have code they give away?
Posted by: Skaperen - Jul-31-2020, 01:32 AM - Forum: News and Discussions - Replies (11)

anyone here have code they give away? i am thinking about giving away a big collection of functions i have put together. i'm just curious how others..... More

Print this item

  In ArgParse, can two compatible formatter_class values be used?
Posted by: pjfarley3 - Jul-31-2020, 01:25 AM - Forum: General Coding Help - Replies (2)

When setting up argparse, I would like to use BOTH formatter_class=argparse.ArgumentDefaultsHelpFormatter AND formatter_class=RawDescriptionHelpFormat..... More

Print this item

  Python code for exporting table using Selenium
Posted by: gj31980 - Jul-30-2020, 10:55 PM - Forum: General Coding Help - Replies (4)

I am looking to download the tables in this URL for different selections like Crude, Oil etc using Python but I am a beginner and I tried using Seleni..... More

Print this item

  New to Python
Posted by: jdc4429 - Jul-30-2020, 10:27 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

New to python and I'm sure this is not probably that hard but I have not found a way to do this in my searching. Ways I have found..... More

Print this item

  Calling Variables from Other Files in Different Folders
Posted by: illmattic - Jul-30-2020, 08:04 PM - Forum: General Coding Help - Replies (14)

I'm currently working on a file in the following directory: F:\Python\Projects\Analysis

And I want to call variables and functions from file: US_d..... More

Print this item

  Int Object is not callable
Posted by: manutd_to - Jul-30-2020, 06:56 PM - Forum: General Coding Help - Replies (6)

Hi Everyone,

I'm currently trying to make a password generator in python but I keep running into the same error. I've tried to change the function p..... More

Print this item

  Why wont this work?
Posted by: samh625 - Jul-30-2020, 04:53 PM - Forum: Homework - Replies (6)

[python]from random import *

def show_flashcard():
""" Show the user a random key and ask them
to define it. Show the definition
..... More

Print this item

  ROBOTICS HELP
Posted by: Paul_Choi06 - Jul-30-2020, 04:44 PM - Forum: News and Discussions - Replies (1)

Hi, I am trying to get into robotics programming. I am just asking for some advice on how to get started or some good courses for this.

Print this item

  Fastest way to subtract elements of datasets of HDF5 file?
Posted by: Robotguy - Jul-30-2020, 04:20 PM - Forum: Data Science - Replies (3)

Input: Input is two arrays (Nx4, sorted in column-2) stored in datasets-1 and 2 in HDF5 file (input.h5). N is huge (originally belonging to 10 ..... More

Print this item

  Fastest Method for Querying SQL Server with Python Pandas
Posted by: BuJayBelvin - Jul-30-2020, 04:02 PM - Forum: General Coding Help - Replies (7)

I am querying a sql table with about 3.5 MM rows and 400 columns - I am estimating it is less than 5 GB in size.

If I use pd.read_sql to select * f..... More

Print this item

  Which webdriver is required for selenium in Pydroid App
Posted by: Rahatt - Jul-30-2020, 03:15 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello all,
I don't know its right place or not .
I don't have PC so I m using Pydroid App on my Alcatel.
Recently I started selenium tutorial, seleniu..... More

Print this item

  pylint not recognizing some objects in VS Code
Posted by: marceloreborn - Jul-30-2020, 03:14 PM - Forum: General Coding Help - Replies (1)

I'm new to Django, and just started a project using Python 3.7, Django 3.0.8 in a Debian WSL2.
Running VS Code in Win10, Python extension installed, ..... More

Print this item

  pyautogui with a display emulator?
Posted by: gumby4231 - Jul-30-2020, 02:46 PM - Forum: General Coding Help - No Replies

Hello Everyone,

I have used the pyautogui module to automatically take photos for my [url=http..... More

Print this item

  Float Formatting
Posted by: Kristenl2784 - Jul-30-2020, 02:45 PM - Forum: General Coding Help - Replies (3)

Hello,

I'm trying to format a float and I can't seem to figure it out. I've been able to make the float only have two decimal places. But I need ..... More

Print this item

  How to sort rows based on specific order
Posted by: Mekala - Jul-30-2020, 02:04 PM - Forum: General Coding Help - Replies (3)

Hi,
I have below dataframe:
I want to arrange (based on column "Name") in the order [A, B,C,D] and by time

Ex:

[python]A
B
C
D
A
B
C
D
A
B
C
D[/py..... More

Print this item

  connot write to sys.stderr
Posted by: anne - Jul-30-2020, 01:49 PM - Forum: General Coding Help - Replies (7)

I am using Eclipse IDE and doing Run As -> Pyton Run "inquiry.py"
It fails in "site.py".

I know what is the function of site.py.

My questio..... More

Print this item

  PIP install problem
Posted by: samuelbachorik - Jul-30-2020, 01:29 PM - Forum: General Coding Help - Replies (1)

Hello guy iam trying to install pyspectator extension with PIP. - https://github.com/it-geeks-club/pyspectator

But always get this error. PLease ca..... More

Print this item

  PermissionError while running function
Posted by: Laplace12 - Jul-30-2020, 01:27 PM - Forum: General Coding Help - Replies (19)

I need help understanding an error. I have created a function that's supposed to read all files in a specific folder and sum them. However, there is a..... More

Print this item

  importing a CSV file into Python
Posted by: russoj5 - Jul-30-2020, 12:51 PM - Forum: General Coding Help - Replies (1)

Good Morning All,
So I am a complete newbie here and took a class last semester, which was partially programming in Python, but was completely useles..... More

Print this item

  AttributeError: 'tuple' object has no attribute 'replace'
Posted by: linuxhacker - Jul-30-2020, 11:35 AM - Forum: GUI - Replies (7)

[python]from tkinter import *
import pygame
from tkinter import filedialog

root = Tk()
root.title('bynet mp3 player')

root..... More

Print this item

  Checking any key
Posted by: wallgraffiti - Jul-30-2020, 10:12 AM - Forum: Game Development - Replies (3)

So I'm making a game with my own animation system, and i'm using the keyboard module for key presses. I need to check if any key is pressed. No key in..... More

Print this item

  Issue referencing new instance from other class
Posted by: nanok66 - Jul-30-2020, 03:00 AM - Forum: General Coding Help - Replies (3)

Hi all,

I have a large program that I distilled down hopefully to the bare issue that I am having. I have a GUI button that starts a thread. This..... More

Print this item

  Comparing Items Different Data Frames With a WHILE Loop
Posted by: JoeDainton123 - Jul-30-2020, 12:16 AM - Forum: General Coding Help - Replies (1)

Hello all

I was wondering if anyone could help with comparing items in one data frame with an items in another data frame.

I have 2 x data frame..... More

Print this item

  import ?
Posted by: anne - Jul-29-2020, 10:20 PM - Forum: General Coding Help - Replies (9)

My first python application
I have some understanding of "import" - as similar to C "include".
I can see how it works in one project / application,..... More

Print this item

  converting scripts to be functions
Posted by: Skaperen - Jul-29-2020, 10:06 PM - Forum: News and Discussions - Replies (4)

i have many scripts that output text of what they find or figure out. i'd like to re-implement them as functions so other script can access the same ..... More

Print this item

  Dictionary question
Posted by: DrZ - Jul-29-2020, 08:37 PM - Forum: General Coding Help - Replies (2)

This will make my look like a nooby - I am, but I am going nuts - help!
The following snippet works exactly as I would expect. It iterates through a ..... More

Print this item

  print CPU temperature
Posted by: samuelbachorik - Jul-29-2020, 06:23 PM - Forum: General Coding Help - Replies (12)

Hello please can someone help me with example of code that prints out CPU temperature ?

Thank you a lot.

Print this item

  Help with isinstance command (very simple code)
Posted by: Laplace12 - Jul-29-2020, 06:04 PM - Forum: General Coding Help - Replies (2)

Hey!

I'm creating a simple function. The point would be to quit the code if n_files//n_pts is not an integer, however I can't get the condition to wo..... More

Print this item

  TXT to Excel columns
Posted by: Kristenl2784 - Jul-29-2020, 05:16 PM - Forum: General Coding Help - No Replies

Hello,

I have a txt file, so when I open it, everything is under 1 column. I want to convert to excel and break the data up and only use column 0,..... More

Print this item

  Unusual things to do with unittest/HTMLTestRunner
Posted by: AndyHolyer - Jul-29-2020, 02:43 PM - Forum: General Coding Help - No Replies

As mentioned in my previous test, I'm preparing a worksheet for undergraduates learning intorductory Python.

The worksheet will be a Google Colab d..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [SOLVED] [BeautifulSoup] ... 5 hours ago Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Today, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... Today, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... Today, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... Yesterday, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... Yesterday, 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
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
Most views
  The best Prog... 579181
  Tutorial Requ... 511831
  Web Scraping ... 442134
  Newbie with P... 386213
  New Users Int... 379051
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
NAGASOWMYAGUNDU Today
shipa1autotransport Today
eastnoob Yesterday
SavingSquirrel199835 11-18
Astrobert 11-18

User Panel Messages

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