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,401
» Latest member: oliviajuior7959
» Forum threads: 38,825
» Forum posts: 176,036

Full Statistics

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

Latest Threads
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 2
» Views: 171
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 11:47 AM
» Replies: 2
» Views: 137
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,186
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Dec-31-2025, 07:58 AM
» Replies: 28
» Views: 15,679
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 216
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,633
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 294
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,651
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 265
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 407

 
  how to count frequency in a column
Posted by: yk303 - Jan-14-2021, 06:48 AM - Forum: Data Science - Replies (3)

Hello,

Can somebody please tell me how I can count number of 'Buy', 'Sell' on a yearly basis for the chart below.

thanks,

YK303

[output]
..... More

Print this item

  TA-Lib pip install not working Mac (Fix Found)
Posted by: DrinkinBeer - Jan-14-2021, 03:05 AM - Forum: General Coding Help - Replies (3)

Whats up everyone, hoping someone has an ideas as I have tried everything I can find to make this work.

Running iOS BigSur with Python 3.9.1 64bit.
..... More

Print this item

  Python - Pandas writing blank files to file
Posted by: tdunphy - Jan-14-2021, 12:11 AM - Forum: Data Science - No Replies

I have a python script that writes to several file formats via Pandas. It can write to CSV/JSON/HTML/Excel.

I'm pulling the data from MongoDB and i..... More

Print this item

  What type of *data* is the name of a list/tuple/dict, etc?
Posted by: alloydog - Jan-13-2021, 07:43 PM - Forum: General Coding Help - Replies (9)

In this excerpt of something I'm playing with, I create a variable from the user input. The user inpout is then added to a string. The resultant str..... More

Print this item

  Invalid syntax using conditionals if - else
Posted by: jperezqu - Jan-13-2021, 07:31 PM - Forum: General Coding Help - Replies (1)

Hi, I'm self-taught Python. I use version 3.9.
I wrote simple code to learn how to use the "if" and "else" conditionals, and they worked, but I tried..... More

Print this item

  Conditional
Posted by: erestum - Jan-13-2021, 06:48 PM - Forum: General Coding Help - Replies (3)

I am trying to design a condition yes/no statement questions and I cannot figure out what I am doing wrong :(
[python]
name = input("What is your na..... More

Print this item

  Pygame Tutorials
Posted by: MK_CodingSpace - Jan-13-2021, 06:27 PM - Forum: Tutorial Requests and Submissions - No Replies

I have developed a series of Python game tutorials on my Youtube Python Programming Chan[url=https://python-forum.io/thread-31989.html]..... More

Print this item

  setting up pipenv
Posted by: tobiasfw - Jan-13-2021, 05:07 PM - Forum: General Coding Help - Replies (1)

Dear all,

I am doing the CodeCademy Python 3 course and there is a video explaining how to install pipenv. I am stuck thow because my setup seems t..... More

Print this item

  Find the next item once the previous one has been identified
Posted by: Pavel_47 - Jan-13-2021, 04:53 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

Here is the page I explore:
..... More

Print this item

  Check element for a particular type
Posted by: Pavel_47 - Jan-13-2021, 04:08 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,
When I print type of a particular element, the output is:

Output:
<class 'bs4.element.Tag'>
How to check it in condition statement ..... More

Print this item

  What is wrong with my format?
Posted by: Oshadha - Jan-13-2021, 03:54 PM - Forum: General Coding Help - Replies (5)

Script,
[python]
import requests


url = 'https://github.com/masker112/Quick-Reply-app/blob/Stuff/Quick%20Reply.jpg?raw=true'
r = requests.get(u..... More

Print this item

  How to detect Windows key?
Posted by: Oshadha - Jan-13-2021, 03:22 PM - Forum: General Coding Help - Replies (1)

How do you detect if,
Windows key + Shift + Q keys are pressed?

I tried to search google, and Youtube, but it didn't make sense!

Print this item

  How to get %appdata% directory?
Posted by: Oshadha - Jan-13-2021, 03:02 PM - Forum: General Coding Help - Replies (1)

I tried to get %appdata% directory,
But failed.

Script,

import os
print os.getenv('APPDATA')
[error]
File "C:\Users\U..... More

Print this item

  Connect 4 assigment
Posted by: Milan - Jan-13-2021, 02:21 PM - Forum: Homework - Replies (10)

Hello team,

I have this assignment to do:
[quote][i]
Have you ever played "Connect 4"? It's a popular kid's game by the Hasbro company. In this ..... More

Print this item

  Random Number Repeating
Posted by: Tzenesh - Jan-13-2021, 12:54 PM - Forum: General Coding Help - Replies (5)

Hello everyone.
I am very new to Python and coding in general and like many people I am learning from a text adventure game. I have figured out the ba..... More

Print this item

  Attribute Error: object has no attribute
Posted by: djwilson0495 - Jan-13-2021, 11:09 AM - Forum: Game Development - Replies (3)

Hi I'm trying to make a basic game. I'm attempting to have rows of stars as background. This is the code I'm using:

[python]
import sys

import..... More

Print this item

  Which Machine Learning Course is Best Between Udemy and Coursera
Posted by: ankitdixit - Jan-13-2021, 09:01 AM - Forum: News and Discussions - Replies (6)

Hello Everyone, I want to learn machine learning. I am looking for online course. I have checked on google to find the course and I have found some to..... More

Print this item

  Combine Two Recursive Functions To Create One Recursive Selection Sort Function
Posted by: Jeremy7 - Jan-13-2021, 08:56 AM - Forum: General Coding Help - Replies (12)

This is just a personal project I'm working on, and have been working on it for days, looking at several Recursive Selection Sort functions online to ..... More

Print this item

  Scraping Whole Page Source
Posted by: GJG - Jan-13-2021, 08:49 AM - Forum: Web Scraping & Web Development - Replies (1)

Is there a way to input the whole page source in exactly same form as you would be seeing it when you click rmb 'View page source' on a browser, just ..... More

Print this item

  What is this error?
Posted by: Oshadha - Jan-13-2021, 07:34 AM - Forum: GUI - Replies (5)

[error]Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\tkinter\__i..... More

Print this item

  How to unlock pc using opencv
Posted by: Tyrel - Jan-13-2021, 07:21 AM - Forum: General Coding Help - Replies (3)

Can someone please help me.
I'm trying to unlock my pc using opencv, here is my current code. It opens up a window with my laptop camera and detects..... More

Print this item

  What is this error?
Posted by: Oshadha - Jan-13-2021, 06:23 AM - Forum: GUI - Replies (1)

Script,
[python]
from tkinter import *

main = Tk()
main.title("1. Unit & Dimentions")
#root.geometry("1600x800+0+0")

#Var Details
length = ..... More

Print this item

  string index out of range
Posted by: jade_kim - Jan-13-2021, 02:58 AM - Forum: General Coding Help - Replies (4)

Here is the code that is causing IndexError...

s = "python"
print(s[8])
[output]
Traceback (most recent call last):..... More

Print this item

  super newbie question: escape character
Posted by: tsavoSG - Jan-13-2021, 12:29 AM - Forum: General Coding Help - Replies (3)

i'm trying pycharm and idle at the same time, and found a strange situation
[python]
print("1 hello")
print("2 hell\n o")
[color=#E74C3C]print("3 ..... More

Print this item

  cv2.waitkey(0) not working coreectly
Posted by: Pedroski55 - Jan-12-2021, 11:19 PM - Forum: General Coding Help - Replies (1)

This is what I'm trying (it's the beginning of a cv2 powered OMR multiple choice marking program) :

Along the way, I want to check on the image, se..... More

Print this item

  Course design assistance
Posted by: Pythonr - Jan-12-2021, 09:27 PM - Forum: Jobs - Replies (6)

Hi there,

I hope it is okay to post this on the forum as I am a little unsure who to contact.@Admins please feel free to remove and DM me instead i..... More

Print this item

  Loading CSV trouble
Posted by: DrinkinBeer - Jan-12-2021, 08:27 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I just started learning Python and having an issue with loading csv. I had it working yesterday. The goal is to load my CSV and event..... More

Print this item

  Calculating BLEU scores in Python
Posted by: kg17 - Jan-12-2021, 07:57 PM - Forum: Homework - Replies (1)

Dear all,
Wondering if anyone has ever had any experience with calculating BLEU scores for evaluating machine translation quality?
I want to compare..... More

Print this item

  Style question on adherence to PEP 8 with whitespace near an "=" sign
Posted by: nilesh - Jan-12-2021, 07:39 PM - Forum: General Coding Help - Replies (6)

Python.org (in the PEP 8 Style Guide for Python Code) says that this is incorrect syntax:

[python]def munge(input: AnyStr, limit = 1000): ...[/pyth..... More

Print this item

  Is there anyway to make a .py file into a .exe file?
Posted by: Oshadha - Jan-12-2021, 05:52 PM - Forum: General Coding Help - Replies (2)

I have a code in .py extension, which I need to convert into .exe extension.
If you ask why,
~

Print this item

  Am I a retard - else and finally blocks in a try statement
Posted by: RubenF85 - Jan-12-2021, 03:35 PM - Forum: General Coding Help - Replies (6)

Came across this gem today:

[python]def reciprocal(n):
try:
n = 1 / n
except ZeroDivisionError:
print("Division failed"..... More

Print this item

  ONE input => THREE outputs
Posted by: Tricia279 - Jan-12-2021, 01:05 PM - Forum: General Coding Help - Replies (6)

Hi there,
I face the problem that I have no idea yet, how to program this:

pos0 = input() example: pos0 = 160

pos1 and pos2 should also get the..... More

Print this item

  Paho-mqtt fully supports MQTT 5.0 protocol?
Posted by: nitinkothari17 - Jan-12-2021, 11:14 AM - Forum: General Coding Help - No Replies

In my application, I'm using MQTT 5.0 protocol so which is best in python paho-mqtt or gmqtt (with asyncio, Does paho-mqtt fully supports MQTT 5.0 pro..... More

Print this item

  Multi-pop using different loops
Posted by: leoahum - Jan-12-2021, 08:28 AM - Forum: General Coding Help - Replies (6)

I'm doing a multi-pop function as following. The goal is to remove the first few elements in a list. For instance, if I have [1,2,3,4,5,6,7,8,9] and s..... More

Print this item

  pyqt5 layout
Posted by: Nickd12 - Jan-12-2021, 03:06 AM - Forum: GUI - Replies (8)

for anyone that knows about pyqt5 how can i set my BuildDateTime class in a box to group it together then place it in the Qmainwindow the window class..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Check if running from she... Yesterday, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help Yesterday, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Merge video with subtitle... 12-31, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580485
  Tutorial Requ... 520196
  Web Scraping ... 442805
  Newbie with P... 387023
  New Users Int... 386845
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
oliviajuior7959 Yesterday
aoliiapetrov4786 Yesterday
zanaalietexaxd4208 Yesterday
zasamueluniorz7349 Yesterday
BioNanoTech Yesterday

User Panel Messages

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