Most viewed questions in Python

0 votes
0 answers

What do the python file extensions, .pyc .pyd .pyo stand for?

What do these python file extensions mean? .pyc .pyd .pyo What ...READ MORE

Mar 15, 2023 in Python by anonymous
• 990 points

edited Mar 5 38 views
0 votes
0 answers

cv2.imshow command doesn't work properly in opencv-python

I'm using opencv 2.4.2, python 2.7 The ...READ MORE

Dec 26, 2022 in Python by erzan
• 630 points

edited Mar 4 38 views
0 votes
0 answers

Converting binary to decimal integer output

I need to convert a binary input ...READ MORE

Dec 26, 2022 in Python by erzan
• 630 points

edited Mar 4 38 views
0 votes
0 answers

How to overcome timeout errors in web crawling?

My output keeps hanging indefinitely. What do ...READ MORE

Oct 9, 2022 in Python by Karthikah

edited Mar 4 38 views
0 votes
0 answers

Relative imports in Python 3

In the same directory, I wish to ...READ MORE

Sep 21, 2022 in Python by Samuel
• 460 points

edited Mar 4 38 views
0 votes
0 answers
0 votes
0 answers

Find the syntax error in the code given:

Find the syntax error in the code ...READ MORE

Mar 16, 2022 in Python by Dharshinii

edited Mar 4 38 views
0 votes
0 answers

Type() function in Python

.I know that type() function is used ...READ MORE

Jul 10, 2021 in Python by Brijesh
• 120 points

edited Mar 4 38 views
0 votes
0 answers

cannot connect to Visual code thru Python, getting 500 error code

500 Sorry, something went wrong on our system. ...READ MORE

May 19, 2021 in Python by Kailash

edited Mar 4 38 views
0 votes
0 answers

I am trying to execute a python code

def __init__(self, mode=False, maxHands=2, detectionCon=0.5, trackCon=0.5):        ^ IndentationError: ...READ MORE

May 13, 2021 in Python by 9A 43

edited Mar 4 38 views
0 votes
0 answers

Understanding slicing

I need a good explanation (references are ...READ MORE

Dec 26, 2022 in Python by erzan
• 630 points

edited Mar 4 37 views
0 votes
0 answers

ValueError: Found input variables with inconsistent numbers of samples: [40002, 1573]

hi I want to try to classify ...READ MORE

Oct 16, 2022 in Python by anonymous

edited Mar 4 37 views
0 votes
0 answers

Filter data in django before expired date

I want to show and filter  data ...READ MORE

Jul 5, 2022 in Python by Ide

edited Mar 4 37 views
0 votes
0 answers

Python define problem

Hi this is my coding so far, ...READ MORE

Nov 30, 2021 in Python by Mattias

edited Mar 4 37 views
0 votes
0 answers

File "<ipython-input-30-eae839ba8312>", line 11 d=dist(queryPoint,X[i]) ^ IndentationError: expected an indented block

for i in range(m):     d=dist(queryPoint,X[i]) &nb ...READ MORE

Jan 15, 2021 in Python by anonymous

edited Mar 4 37 views
0 votes
0 answers

List vs tuple, when to use each?

In Python, when should you use lists ...READ MORE

Mar 15, 2023 in Python by Arya
• 990 points

edited Mar 5 36 views
0 votes
0 answers

How to highlight cell value in dataframe that exceeds mean of its column

I have a df with where I ...READ MORE

Jun 10, 2022 in Python by Pavan

edited Mar 4 36 views
0 votes
0 answers

IndentationError: expected an indented block, while executing elbow method

K = range(1,10) sum_sq_dst = [] for k in ...READ MORE

Sep 1, 2021 in Python by Edureka

edited Mar 4 36 views
0 votes
0 answers

How can I fix the attribute error in my pycharm IDE?

Traceback (most recent call last):   File "C:\Users\SONY\PycharmProjects\Python Tuts\.idea\chammach.py", ...READ MORE

Jul 25, 2021 in Python by anonymous

edited Mar 4 36 views
0 votes
0 answers
0 votes
0 answers

Hello. I'm trying to convert this string '0x278a51da' into a integer so I can use it on the ctime() from time.

time_in_hexa_format_as_string = '0x278a51da' def get_time_stamp(value_for_time): ...READ MORE

Jul 12, 2021 in Python by Rafael

edited Mar 4 36 views
0 votes
0 answers

I want to raise the value by 500 of existing column (of annual income) in python

I'm trying to model a ubi on ...READ MORE

Jun 25, 2021 in Python by Lee

edited Mar 4 36 views
0 votes
0 answers

discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.unban' raised an error: IndentationError: expected an indented block (unban.py, line 11)

import discord from discord.ext import commands from discord import ...READ MORE

Dec 31, 2022 in Python by anonymous
• 100 points

edited Mar 4 35 views
0 votes
0 answers

I executed this code. But its showing me error. Could anyone fix it?

READ MORE

Jun 25, 2022 in Python by anonymous

edited Mar 4 35 views
0 votes
0 answers

IndentationError: expected an indented block

this is my code  stemming = PorterStemmer() corpus = ...READ MORE

Jun 8, 2022 in Python by anonymous

edited Mar 4 35 views
0 votes
0 answers

why do we hide data to user in python

in data abstraction, oops concept READ MORE

Jan 28, 2022 in Python by AHMED

edited Mar 4 35 views
0 votes
0 answers

How can I fetch the data of one table by joining the other tables in django?

Need help in making a query, i ...READ MORE

Jun 17, 2021 in Python by anonymous

edited Mar 4 35 views
0 votes
0 answers

If I have multilabel admin register through API in Django, how do I show the users of each admin?

I'm using DRF for make API , ...READ MORE

Nov 28, 2022 in Python by Mohamed

edited Mar 4 34 views
0 votes
0 answers

MYSQL CONNECTOR ISSUE

I AM TRYING TO CONNECT MYSQL(8.0) AND ...READ MORE

Jun 19, 2021 in Python by anonymous

edited Mar 4 34 views
0 votes
0 answers

How to exit the function if any error -python

i want to exit the code then ...READ MORE

Dec 8, 2022 in Python by anonymous

edited Mar 4 33 views
0 votes
0 answers

Base language of Python

Since Python is merely a set of ...READ MORE

Nov 17, 2022 in Python by Samuel
• 460 points

edited Mar 4 33 views
0 votes
0 answers

DJANGO HELP NEEDED

Whenever I run Command (DJANGO-ADMIN) it gives ...READ MORE

Sep 3, 2021 in Python by Nabeel

edited Mar 4 33 views
0 votes
0 answers

MQTT subscribe message

Hello, this is my code where i ...READ MORE

Dec 9, 2021 in Python by Shiri

edited Mar 4 31 views
0 votes
0 answers

What is print(f"...") ?

I'm looking at a Python script that ...READ MORE

Sep 18, 2023 in Python by Satyawrat
• 460 points

edited Mar 5 30 views
0 votes
0 answers

Testcase getting failed

def test_upload_file(client, tmp_path, set_mock_decrypty):     """     ...READ MORE

Apr 14, 2022 in Python by anonymous

edited Mar 4 30 views
0 votes
0 answers

solve syntax error

self.var_name= StringVar()                  ^ SyntaxError: invalid syntax how to solve the ...READ MORE

Oct 10, 2022 in Python by anonymous

edited Mar 4 29 views
0 votes
0 answers

how to make the output stop outputting when it is a precise rgb number?

I am a beginner using python so ...READ MORE

Dec 6, 2022 in Python by anonymous

edited Mar 4 28 views