Most voted questions in Python

0 votes
0 answers

How can you raise a ValueError in python?

Can you give an example to show ...READ MORE

Jun 3, 2019 in Python by Waseem
• 4,540 points
411 views
0 votes
0 answers

How does profiling work for python scripts?

can you write a sample script to ...READ MORE

Jun 3, 2019 in Python by Waseem
• 4,540 points
430 views
0 votes
1 answer

How change title bar background color in python tkinter?

You cant change colour cause its the ...READ MORE

Jun 10, 2020 in Python by bezlin
8,591 views
0 votes
1 answer

Install Kivy dependencies for OS X?

Without using brew you can install the ...READ MORE

May 31, 2019 in Python by Danica
1,189 views
0 votes
1 answer

Install Kivy dependencies for Ubuntu?

Execute the following commands for Ubuntu 17.10 ...READ MORE

May 31, 2019 in Python by Tripti
2,733 views
0 votes
1 answer

What is Kivy?

Hey @Dipti, Kivy is an open source software ...READ MORE

May 31, 2019 in Python by Haseeb
773 views
0 votes
1 answer

What are the best IDEs for Python?

I personally feel Pycharm is very charming ...READ MORE

May 31, 2019 in Python by Tushar
445 views
0 votes
1 answer

Disadvantages of using PyMob

There are many disadvantages of using PyMob: The framework ...READ MORE

May 31, 2019 in Python by Tamanna
1,130 views
0 votes
1 answer

Advantages of using PyMob?

There are a few advantages of using ...READ MORE

May 31, 2019 in Python by Tushar
2,599 views
0 votes
1 answer

Is it possible to make android apps using python?

Yes, of course, it's possible. PyMob is ...READ MORE

May 31, 2019 in Python by Umer
483 views
0 votes
1 answer

Are there any copyrights restriction on python usage?

You can do anything and everything with ...READ MORE

May 31, 2019 in Python by Haseeb
446 views
0 votes
1 answer

Python error "ZeroDivisionError: division by zero"

Catch the error and handle it: try: ...READ MORE

May 31, 2019 in Python by Rhea
8,523 views
0 votes
2 answers

Python error "TypeError: Can't convert 'int' object to str implicitly"

A TypeError can occur if the type ...READ MORE

Feb 5, 2020 in Python by lovelmark
• 160 points
1 flag 18,303 views
0 votes
1 answer

Python error "Python NameError: global name 'Thread' is not defined"

There is a built-in function with the ...READ MORE

May 31, 2019 in Python by Riya
6,834 views
0 votes
0 answers

What is the python image library?

Do we use it in python 3 ...READ MORE

May 31, 2019 in Python by Waseem
• 4,540 points
361 views
0 votes
0 answers

What is the difference between isdigit, isnumeric and isdecimal in python?

Can you give examples for each of ...READ MORE

May 31, 2019 in Python by Waseem
• 4,540 points
2,059 views
0 votes
1 answer

Python pygame error : Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

Try installing libpng You can do it with ...READ MORE

May 31, 2019 in Python by SDeb
• 13,300 points
1,458 views
0 votes
1 answer

keras model.fit_generator() several times slower than model.fit()

You may want to check out the ...READ MORE

May 31, 2019 in Python by SDeb
• 13,300 points
2,871 views
0 votes
1 answer

How to add a new Python interpreter in PyCharm?

Refer to the below screenshots: Then set a ...READ MORE

May 30, 2019 in Python by Shabnam
• 930 points
5,177 views
0 votes
1 answer

Dependencies required to build Matplotlib on RedHat and how do I install them?

If you are on RedHat, you can ...READ MORE

May 30, 2019 in Python by Kamlesh
792 views
0 votes
1 answer

How to install modules in Pycharm?

You can install modules in PyCharm using ...READ MORE

May 30, 2019 in Python by Shabnam
• 930 points
50,570 views
0 votes
1 answer

Dependencies required to build Matplotlib on ubuntu

If you are on Debian/Ubuntu, you can ...READ MORE

May 30, 2019 in Python by Tara
455 views
0 votes
1 answer

Are there any dependancies for installing matplotlib in python?

Matplotlib requires the following dependencies: Python (>= 3.6) FreeType ...READ MORE

May 30, 2019 in Python by Farzi
376 views
0 votes
1 answer

Install matplotlib - Python

Execute the following commands to install matplotlib ...READ MORE

May 30, 2019 in Python by Tara
595 views
0 votes
1 answer
0 votes
1 answer

Convert data in dataframe - Python

Reshape dataframe using DataFrame.unstack for DatetimeIndex, then ...READ MORE

May 30, 2019 in Python by Gargi
616 views
0 votes
1 answer

Python error saying "AttributeError: can't set attribute"

change your code to the following: @x.setter def x(self, ...READ MORE

May 30, 2019 in Python by Imran
18,631 views
0 votes
1 answer

Replace values in data frame with valued of another dataframe.

Hi @Puneeth, you use something like this: f ...READ MORE

May 30, 2019 in Python by Ashish
3,847 views
0 votes
1 answer

Python error "TypeError: Cannot compare types 'ndarray(dtype=int64)' and 'str'"

Hey @Ashish, change the emotion_map to the ...READ MORE

May 30, 2019 in Python by Mir
7,727 views
0 votes
0 answers

What is the use of get requests in python?

What are the other http requests in ...READ MORE

May 30, 2019 in Python by Waseem
• 4,540 points
325 views
0 votes
0 answers

How to do line continuation in python?

Is it same as the other programming ...READ MORE

May 30, 2019 in Python by Waseem
• 4,540 points
490 views
0 votes
1 answer

Python - Whitespace after

print adds a single space after every argument, including `\n'. ...READ MORE

May 30, 2019 in Python by SDeb
• 13,300 points
424 views
0 votes
1 answer

Json RPC Python Client

There is json-rpc library, it supports python2.7, python3.2+, does ...READ MORE

May 30, 2019 in Python by SDeb
• 13,300 points
1,370 views
0 votes
1 answer

How can I raise an exception in Python so that it can later be caught via an except block?

It's pretty simple to raise a query  raise ...READ MORE

May 29, 2019 in Python by Umesh
749 views
0 votes
1 answer

Python error "error: Unable to find vcvarsall.bat"

Try specifying mingw as the compiler of choice. ...READ MORE

May 29, 2019 in Python by Imran
3,205 views
0 votes
1 answer

Python error "AttributeError: incompatible shape for a non-contiguous array"

It is not always possible to change ...READ MORE

May 29, 2019 in Python by Imran
1,767 views
0 votes
1 answer

What does numpy.reshape() function do in python?

numpy.reshape() gives a new shape to an ...READ MORE

May 29, 2019 in Python by Kyraa
912 views
0 votes
1 answer

Slice an array into multiple arrays - Python

can use numpy.reshape.  In your case, pass 1 ...READ MORE

May 29, 2019 in Python by Alia
639 views
0 votes
1 answer

zeropad all the arrays to match the largest array in that file in python

You can try something like this: import numpy ...READ MORE

May 29, 2019 in Python by Wazeer
386 views
0 votes
0 answers

How can we use sqlite with WAL?

Can you give an example? READ MORE

May 29, 2019 in Python by Waseem
• 4,540 points

edited May 30, 2019 by Omkar 472 views
0 votes
0 answers

How can you subtract a day from date?

Can you give an example? READ MORE

May 29, 2019 in Python by Waseem
• 4,540 points

edited May 30, 2019 by Omkar 266 views
0 votes
1 answer

How do I trim extra zeros from a 2D array in python?

Hey @Laksha, you can try something like ...READ MORE

May 29, 2019 in Python by Yamini
2,569 views
0 votes
1 answer

How do I trim the leading or trailing zeros from a 1d array in python?

Hey @Akki, you can use the numpy ...READ MORE

May 29, 2019 in Python by Wakir
1,502 views
0 votes
1 answer

Has Python 3.0 reached end of support?

The first release of Python 3 was ...READ MORE

Jun 7, 2019 in Python by Harsh
• 180 points
438 views
0 votes
1 answer

What is the most recent version of python 3?

Python 3.7.3 is the latest release of ...READ MORE

Jun 7, 2019 in Python by Harsh
• 180 points
508 views
0 votes
1 answer

Deploying Flask on Windows in production

Installing on Windows is kind of like ...READ MORE

May 29, 2019 in Python by SDeb
• 13,300 points
3,314 views
0 votes
1 answer

Hive client for Python 3.x

If you have HiveServer2 installed you can ...READ MORE

May 29, 2019 in Python by SDeb
• 13,300 points
604 views
0 votes
1 answer

Error saying "ValueError: Invalid file object: <_io.BufferedReader name=9>"

Once you've executed the following command, your ...READ MORE

May 28, 2019 in Python by Tamanna
5,069 views
0 votes
1 answer

Error saying "TypeError: descriptor object needs an argument"

The error is pretty straight forward, toy ...READ MORE

May 28, 2019 in Python by Alisha
12,955 views
0 votes
1 answer

How do I install SortedContainers in python?

You can install SortedContainers using pip: > pip ...READ MORE

May 28, 2019 in Python by Jinu
4,362 views