Trending questions in Python

+1 vote
8 answers

How to fix this? ValueError: invalid literal for int() with base 10 error in Python

Just for the record: >>> int('55063.000000') Traceback (most recent ...READ MORE

Aug 17 in Python by pakainfo
• 200 points
164,714 views
+1 vote
3 answers

In Python, what is difference between Array and List?

Lists and arrays are used in Python ...READ MORE

Mar 15, 2019 in Python by Taj
• 1,080 points

edited Mar 18, 2019 by Omkar 95,952 views
+1 vote
2 answers

How to change/update cell value in Python Pandas dataframe?

You can use the at() method to ...READ MORE

Apr 8, 2019 in Python by Kunal
82,447 views
+6 votes
6 answers

What exactly is the function of random.seed() in python?

The seed method is used to initialize the ...READ MORE

Oct 29, 2018 in Python by Rahul
91,437 views
+2 votes
11 answers

How to print array/ list without brackets in python?

print(*names, sep = ', ') This is what ...READ MORE

Dec 10, 2018 in Python by Sudo
92,895 views
0 votes
3 answers

Python error "IndentationError: expected an indented block"

IndentationError:  what is the mean READ MORE

Oct 14 in Python by anonymous
• 140 points
65,414 views
0 votes
2 answers

How to use not equal operator in python

You can use "!=" and "is not" ...READ MORE

Mar 17 in Python by rahul
• 360 points
63,201 views
+2 votes
1 answer

UnicodeDecodeError: "utf-8" codec can't decode byte in position : invalid start byte

You have to use the encoding as latin1 ...READ MORE

Jul 23, 2019 in Python by Kunal
61,418 views
+2 votes
1 answer

Python: UnicodeDecodeError: "utf-8" codec can"t decode byte 0xa0 in position 10: invalid start byte

You have to use the encoding as latin1 ...READ MORE

Jul 11, 2019 in Python by Ritu
58,832 views
+1 vote
3 answers

Python error "ERROR: Could not find a version that satisfies the requirement PyQt4 (from versions: none)"

You cannot install PyQt directly from pip. ...READ MORE

Jul 22, 2019 in Python by Bob
51,794 views
0 votes
1 answer

How to find the index of a particular value in a dataframe?

First, use the dataframe to match the ...READ MORE

Apr 8, 2019 in Python by Esha
47,866 views
+1 vote
1 answer

How can I use python to execute a curl command?

For sake of simplicity, maybe you should ...READ MORE

Oct 11, 2018 in Python by charlie_brown
• 7,780 points
55,374 views
0 votes
1 answer

Python Pandas error: AttributeError: 'DataFrame' object has no attribute 'rows'

There is no attribute called “rows”. The ...READ MORE

Mar 28, 2019 in Python by Shri
46,864 views
0 votes
2 answers

How do I remove an element from a list by index in Python?

Delete the List and its element: We have ...READ MORE

Jun 7 in Python by sahil
• 540 points
34,664 views
+1 vote
2 answers

Python: convert txt file to csv format with rows and columns

If there is lots of raw data ...READ MORE

Sep 21 in Python by Archies singh
27,250 views
0 votes
1 answer

Python Pandas: ValueError: DataFrame constructor not properly called!

The syntax is not right. The right ...READ MORE

Mar 28, 2019 in Python by Ritu
40,728 views
0 votes
2 answers

ModuleNotFoundError: No module named 'cv2'

First do run these commands inside Terminal/CMD: conda ...READ MORE

Aug 17 in Python by pakainfo
• 200 points
20,881 views
+1 vote
5 answers

What do you mean by python scripting? What is a script and a module in python?

A module is a file containing a ...READ MORE

Jun 17, 2019 in Python by Zain Abbas
33,597 views
0 votes
1 answer

How to get the return value from a thread using python?

You don't need to change your existing ...READ MORE

Dec 3, 2018 in Python by Nymeria
• 3,520 points

edited Dec 19, 2018 by Nymeria 42,518 views
0 votes
2 answers

How to read Pandas csv file with no header?

Use this logic, if header is present ...READ MORE

Mar 14 in Python by Shahabuddin
• 160 points
29,340 views
+1 vote
2 answers

How to install tkinter in pycharm?

Ya, this is a problem with installing ...READ MORE

Apr 3, 2019 in Python by Jishan
30,540 views
0 votes
3 answers

How can I use grep in Python?

Hello,  Here goes a short demonstration on How ...READ MORE

Jul 1 in Python by Nagaraj

edited Jul 2 28,691 views
0 votes
1 answer

TypeError: unsupported operand type(s) for -: 'str' and 'str'

Hi. This error is caused because you ...READ MORE

May 12, 2019 in Python by Anjali
34,317 views
0 votes
1 answer

Python exit commands - why so many and when should each be used?

Let me give some information on them: quit ...READ MORE

Aug 27, 2018 in Python by Priyaj
• 57,700 points
43,631 views
0 votes
3 answers

Python error "NameError: name 'sr' is not defined"

NameError: name 'xx' is not defined Python knows ...READ MORE

Mar 19 in Python by rahul
• 360 points
27,769 views
0 votes
1 answer

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Nadeem\AppData\Local\Temp\

Hi@akhtar, I think you are using previous version ...READ MORE

May 4 in Python by MD
• 66,500 points
13,578 views
0 votes
1 answer

AttributeError: 'numpy.ndarray' object has no attribute 'append'

Hi@akhtar, If you trying to append data in ...READ MORE

May 5 in Python by MD
• 66,500 points
12,978 views
0 votes
3 answers

TypeError: Index(...) must be called with a collection of some kind, 'Email' was passed

It is not working because your code ...READ MORE

May 12 in Python by anonymous

edited May 13 by Gitika 21,012 views
+2 votes
1 answer

ModuleNotFoundError: No module named 'Crypto'

The module you’ve installed is different. To install ...READ MORE

Aug 20, 2019 in Python by Raman
21,671 views
0 votes
1 answer

How to print objects of class using print function in Python?

It can be done as shown below: class Element: ...READ MORE

Dec 3, 2018 in Python by Nymeria
• 3,520 points

edited Dec 19, 2018 by Nymeria 32,670 views
0 votes
2 answers

In Python, How do I read 2 CSV files, compare column 1 from both, and then write to a new file where the Column 1s match?

Hi @Mike. First, read both the csv ...READ MORE

Jul 24, 2019 in Python by Omkar
• 69,030 points
13,138 views
0 votes
3 answers

what is the difference between append and insert in python lists?

There is a simple difference between append ...READ MORE

Jun 22, 2019 in Python by Harshdeep Khatke
18,114 views
0 votes
2 answers
+1 vote
2 answers

How do i resolve the "unexpected indent" error in python?

As the error message indicates, you have ...READ MORE

Nov 26, 2019 in Python by bennetcole
• 160 points
1 flag 18,461 views
+1 vote
1 answer

(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

You are getting this error because you ...READ MORE

Dec 31, 2019 in Python by Kalgi
• 51,970 points
13,393 views
0 votes
0 answers

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Hi Developers, im facing an issue while ...READ MORE

1 day ago in Python by Numan
• 120 points
145 views
0 votes
2 answers

NameError: name 'raw_input' is not defined

Hi, There may a problem with your python ...READ MORE

Jun 25 in Python by MD
• 66,500 points
19,598 views
0 votes
0 answers

i am getting an error on pycharm while installing packages

 ERROR: Command errored out with exit status ...READ MORE

6 hours ago in Python by anonymous
• 120 points
6 views
0 votes
1 answer

ERROR: PyAudio-0.2.11-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

Hi, @Henll, You should download the version that ...READ MORE

4 days ago in Python by Gitika
• 41,720 points
131 views
0 votes
0 answers

Help please on basic python web server

I been stuck on this problem for ...READ MORE

1 day ago in Python by anonymous
• 120 points
11 views
0 votes
1 answer

position error

Hi, @There, The key error generally means the ...READ MORE

3 days ago in Python by Gitika
• 41,720 points
19 views
0 votes
1 answer

Is python partially compiled and partially interpreted?

Hi, @Sonali, You can check this out https://www.edureka.co/community/6776/compiled-vs-interpreted-languages, as ...READ MORE

4 days ago in Python by Gitika
• 41,720 points
25 views
0 votes
2 answers

Python Error: No python at 'C:\Users\dell\Appdata\Local\Programs\Python\Python37-32\python.exe'

did you solve this problem? i have ...READ MORE

Aug 19 in Python by anonymous
3,850 views
0 votes
1 answer

How to change the order of DataFrame columns in pandas?

Hi@akhtar, You can rearrange a DataFrame object by ...READ MORE

6 days ago in Python by MD
• 66,500 points
23 views
0 votes
1 answer

How to filter Pandas DataFrame by values of columns?

Hi@akhtar, You can filter Pandas Dataframe with the ...READ MORE

6 days ago in Python by MD
• 66,500 points
22 views
0 votes
1 answer

what is if __name__ =='__main__: in python

Hello @Joy, '__main__' is the name of the scope ...READ MORE

6 days ago in Python by Niroj
• 67,020 points
30 views
0 votes
1 answer

Code for motion detection with opencv Youtube tutorial please

Hey, @Ashay, You can even go through this: https://www.youtub ...READ MORE

Oct 19 in Python by Gitika
• 41,720 points
28 views
0 votes
1 answer

AssertionError: <class 'numpy.ndarray'>

Hi, @There, The traceback module and sys.exc_info are ...READ MORE

Oct 19 in Python by anonymous
• 41,720 points
35 views
0 votes
1 answer

El return solo me devuelve False en este método

Hola amiga como estas La función no devuelve ...READ MORE

Oct 19 in Python by Gitika
• 41,720 points
24 views