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,283
» Latest member: alexferrina
» Forum threads: 38,793
» Forum posts: 175,876

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 33 Guest(s)
Bing, Google, Twitter, lovedeep

Latest Threads
LhanePulse
Forum: General Coding Help
Last Post: Gichardaxora
1 hour ago
» Replies: 0
» Views: 7
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
11 hours ago
» Replies: 5
» Views: 111
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 47
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,482
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 139
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 62
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,067
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,298
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 365
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 206

 
  Automating Windows GUI applications
Posted by: metro17 - Feb-06-2020, 07:16 AM - Forum: General Coding Help - Replies (4)

from pywinauto import application
app = application.Application()
app.start("Notepad.exe")

The above code launches a notepad.

But when I try t..... More

Print this item

  Fixing the code
Posted by: khanhcao - Feb-06-2020, 05:17 AM - Forum: General Coding Help - Replies (2)

Hi everybody, I'm a new beginner and I just starting to learn to code. I have a question about the code that I coded, when I put the operation in and..... More

Print this item

  Pip Syntax Errors in CMD: Windows 10 and Python 3.8.1
Posted by: jamesphopper - Feb-06-2020, 04:25 AM - Forum: General Coding Help - Replies (2)

Ok-

There a many threads out there on pip giving syntax errors, but none of their solutions are working for me.

I'm using Windows 10 home (buil..... More

Print this item

  Python numpy fft from data file
Posted by: magnet1 - Feb-06-2020, 01:36 AM - Forum: Data Science - Replies (1)

Hello,
I'm new to Python and I'm not sure. trying to do a python fft with a data file.

It cans plot the data file in the time domain like the cod..... More

Print this item

  Headless Chrome: How to login into a webpage?
Posted by: amandacstr - Feb-06-2020, 01:29 AM - Forum: Web Scraping & Web Development - Replies (1)

How can I login into a webpage(fill and submit the login/pass form tag) using Headless Chrome. I made a web crawler with Python 3, BeautifulSoup and H..... More

Print this item

  name undefined Coding Error
Posted by: Ewilliam51 - Feb-06-2020, 12:12 AM - Forum: General Coding Help - Replies (2)

I created a program that is supposed to ask the user for a number, tell the user whether the number is odd or even and then ask the user if they want ..... More

Print this item

  How to match number of features of training dataset to testing input
Posted by: anhnguyen - Feb-05-2020, 08:28 PM - Forum: Data Science - No Replies

***This is a revised question from a previous post since I do not know how to delete my old post***

Here is the top of the script where the model w..... More

Print this item

  Equivalent of 'bwareafilt' for Python
Posted by: Mighty - Feb-05-2020, 07:25 PM - Forum: General Coding Help - Replies (1)

What is an equivalent to the MATLAB function bwareafilt in Python? I need an output binary image that only contains the largest connected area of pixe..... More

Print this item

  Equality in Python
Posted by: el_bueno - Feb-05-2020, 07:16 PM - Forum: General Coding Help - Replies (8)

Hello!

what is the actual difference between

=
and
==

I have some trouble understanding the actual meaning of theses 2 operators.

Coul..... More

Print this item

  Error after a few minutes of running
Posted by: julio2000 - Feb-05-2020, 06:54 PM - Forum: Web Scraping & Web Development - Replies (10)

[error]
Fatal Python error: Cannot recover from stack overflow.
Python runtime state: initialized

Current thread 0x000019e8 (most recent call fir..... More

Print this item

  ppadb classes
Posted by: alejandroot - Feb-05-2020, 06:31 PM - Forum: General Coding Help - Replies (2)

Hello,

I inherited some automation scripts that use the packages below. I installed pure-python-adb to replace adb, but the ppadb does not have the..... More

Print this item

  import pynput
Posted by: Sherlock42 - Feb-05-2020, 06:27 PM - Forum: General Coding Help - Replies (2)

Traceback (most recent call last):
File "C:\python_examples\pynput_2.py", line 1, in <module>
from pynput.mouse import Listener
File "C:\py..... More

Print this item

  Create function around sql
Posted by: ayomayam - Feb-05-2020, 05:49 PM - Forum: General Coding Help - Replies (1)

iwant to pass the arguments for where clause in the below code as a argument (keyword/positional) through outside the code. how do i do this ?

from..... More

Print this item

  code not writing to projNameVal portion of code.
Posted by: umkc1 - Feb-05-2020, 05:25 PM - Forum: General Coding Help - Replies (1)

[python]import os
import shutil
##from tkinter import filedialog,messagebox
##from tkinter import *
import glob
##import pandas as pd
##import p..... More

Print this item

  How to access specific values from a dict?
Posted by: t4keheart - Feb-05-2020, 05:03 PM - Forum: General Coding Help - Replies (6)

I'm working with a dictionary (full of dictionaries, I believe?).

Here it is:
[python]{1005672: {4461048: {'body': 'Mnow test test', 'msg_id': 446..... More

Print this item

  Frustrations with Test & Dev Environments
Posted by: DarrenSmith_EA - Feb-05-2020, 04:37 PM - Forum: Bar - Replies (6)

Hi,

I am working on some research for Test and Development Environments, and I am really interested in hearing peoples stories around how they use ..... More

Print this item

  Hi how do i solve this ?
Posted by: Houston222 - Feb-05-2020, 03:51 PM - Forum: General Coding Help - Replies (3)

Hi, right now what happens is that my codes shown below will print out error even when a wrong answer is inserted, this error message under the else i..... More

Print this item

  Print only nth line
Posted by: AgileAVS - Feb-05-2020, 03:17 PM - Forum: General Coding Help - Replies (2)

FOR EXAMPLE THE FILE IS AS FOLLOWS:

[b][b]<td class="text-center">28,426</td>

<td class="text-center">240</td>

<td class="text-center">6,893,..... More

Print this item

  Show graphs in matplotlib from a sql query?
Posted by: ScaleMan - Feb-05-2020, 02:27 PM - Forum: General Coding Help - Replies (1)

Greetings,
I am in the absolute beginning of my programming journey trying to understand things and doing it the right way.
Now I somehow managed to..... More

Print this item

  Python: possibilty ro make a list of the file in the folder & change the name of file
Posted by: go127a - Feb-05-2020, 01:16 PM - Forum: General Coding Help - No Replies

I have a list of file. I am going to change the file name regarding to the modified date in below format. original file name:
[output]
2019-11-26_#0..... More

Print this item

  Pythonic way to handle/spread alerts class in multiple modules
Posted by: psolar - Feb-05-2020, 01:15 PM - Forum: General Coding Help - Replies (11)

I have a class to handle alerts that, at the end of the process, will be sent in an email. This alerts are list that should be updated during the proc..... More

Print this item

  prediction using linear regression (extrapolation?) in a loop
Posted by: karlito - Feb-05-2020, 10:56 AM - Forum: Data Science - No Replies

Hey!
sorry but the title is not clear enough because I didn't know how to describe it with few words.

As you can see in the image I have used int..... More

Print this item

  Posting value from excel to Form (Python+Selenium)
Posted by: revanth - Feb-05-2020, 10:43 AM - Forum: Web Scraping & Web Development - No Replies

[python]import selenium
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions..... More

Print this item

  ValueError: X has 231 features per sample; expecting 1228
Posted by: anhnguyen - Feb-05-2020, 09:18 AM - Forum: Data Science - Replies (4)

Here is the top of the script where the model was trained (I am using Logistic Regression):

[python]
data_raw = pd.read_sql(sql,cnxn)

pd.Series..... More

Print this item

  Random nr. no repetition & printing multiple lines
Posted by: Joey - Feb-05-2020, 07:31 AM - Forum: General Coding Help - Replies (7)

First of all i apologize if a make any grammar mistakes English is not my native language.
I'm new to python and i have the following dilemma:
How d..... More

Print this item

  pandas error
Posted by: Scott - Feb-05-2020, 07:07 AM - Forum: Data Science - Replies (2)

I recently did some pip installs and upgraded pip, now I am having an issue with pandas. When I try import it I get this error.

C:\Program Files\An..... More

Print this item

  Manipulating index value, what is wrong with this code?
Posted by: Emun - Feb-05-2020, 06:55 AM - Forum: General Coding Help - Replies (1)

I want to manipulate an index value on list1, but can't figure out why the manipulation('alt') appears at two locations instead of just one. list2 sho..... More

Print this item

  Using input function in a Class
Posted by: wew044 - Feb-05-2020, 06:22 AM - Forum: General Coding Help - Replies (2)

Hi All, I am trying to make the code below to be a little bit more interactive by doing the following:
1. When run the code, it will show you the lis..... More

Print this item

  df.str.contains() Not Working
Posted by: ahmedwaqas92 - Feb-05-2020, 04:48 AM - Forum: Data Science - Replies (1)

I have a if/else procedural code that is querying a data frame. I am passing a str.contains() command after the main (else) function, yet it only show..... More

Print this item

  Attemping 3D.
Posted by: Zman350x - Feb-05-2020, 03:02 AM - Forum: Game Development - No Replies

I've been following a tutorial on making 3D graphics from scratch, and I've looked over my code many a time and can't figure out what's wrong. Can som..... More

Print this item

  Create a flowchart
Posted by: Isabella - Feb-05-2020, 01:09 AM - Forum: GUI - Replies (2)

I'm trying to create a flowchart in the wxpython library, but I have no idea what commands to use.
I am not able to define a rectangle and asso..... More

Print this item

  Calculation Question.
Posted by: parkch0708 - Feb-05-2020, 12:57 AM - Forum: General Coding Help - Replies (1)

Hello.

I used Anaconda 3, and I found wrong calculation result.

>>> 4.4 / 100
0.044000000000000004

Is this bug of Python?

Or did I use it..... More

Print this item

  How to append to a dictionary?
Posted by: t4keheart - Feb-04-2020, 09:19 PM - Forum: General Coding Help - Replies (1)

Hi everyone,
This seems like it should be simple, I just don't know how to do it.
Anyways, I'm working with a json response from a server/api.
I..... More

Print this item

  Using groupby on non-categorical values
Posted by: namy77 - Feb-04-2020, 08:36 PM - Forum: General Coding Help - Replies (1)

Hello everybody, I have a data set:
[python]animals = pd.DataFrame({'kind': ['cat', 'dog', 'cat', 'dog'],
'height': [9.1, 6.0, 9.5, 34.0],
'weight': ..... More

Print this item

  Getting the error like function not defined .. suggest correct code
Posted by: raghava - Feb-04-2020, 08:25 PM - Forum: General Coding Help - Replies (1)

[python]
class ABC:
def __init__(self,name,accno):
self.name=name
self.accno=accno

def main(self):
print("W..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhanePulse 1 hour ago Gichardaxora Gichardaxora General Codin...
  data fetching for indian ... 11 hours ago drakhsin snippsat Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 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
Most views
  The best Prog... 579256
  Tutorial Requ... 512102
  Web Scraping ... 442185
  Newbie with P... 386294
  New Users Int... 379596
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 7390
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexferrina Today
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21

User Panel Messages

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