Top "Python-3.x" questions

For questions about Python programming that are specific to version 3+ of the language.

Python threading.timer - repeat function every 'n' seconds

I want to fire off a function every 0.5 seconds and be able to start and stop and reset the timer. …

python python-3.x python-2.7
How do you use subprocess.check_output() in Python?

I have found documentation about subprocess.check_output() but I cannot find one with arguments and the documentation is not …

python python-3.x python-2.x
matplotlib: plot multiple columns of pandas data frame on the bar chart

I am using the following code to plot a bar-chart: import matplotlib.pyplot as pls my_df.plot(x='my_…

python python-3.x pandas matplotlib bar-chart
Python, HTTPS GET with basic authentication

Im trying to do a HTTPS GET with basic authentication using python. Im very new to python and the guides …

python python-3.x
How to make unicode string with python3

I used this : u = unicode(text, 'utf-8') But getting error with Python 3 (or... maybe I just forgot to include …

python unicode python-3.x
only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

I am implementing fft as part of my homework. My problem lies in the implemention of shuffling data elements using …

python python-3.x numpy fft dft
Understanding lambda in python and using it to pass multiple arguments

After reading everything I can find on lambda, I still don't understand how to make it do what I want. …

python python-3.x tkinter
Anaconda Installed but Cannot Launch Navigator

Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator …

python windows python-3.x windows-10 anaconda
How to run Spyder in virtual environment?

I have been using Spyder installed with with Anaconda distribution which uses Python 2.7 as default. Currently I need to set …

python python-3.x virtualenv anaconda spyder
TypeError: a bytes-like object is required, not 'str'

The following is the code that tries to modify the input supplied by a user by using sockets: from socket …

python python-3.x sockets