Top "Nonetype" questions

Nonetype refers to an object or type whose value is null (none).

How to compare pandas DataFrame against None in Python?

How do I compare a pandas DataFrame with None? I have a constructor that takes one of a parameter_file …

python pandas python-2.x nonetype
What's the correct None or null entry for a datetime.datetime object in Python?

I'm loading some dates into mongodb using pymongo. Because pymongo does automatic conversions to BSON, I'm working with datetime's datetime.…

python mongodb datetime nonetype date-math
Why doesn't len(None) return 0?

None in Python is an object. >>> isinstance(None, object) True And as such it can employ functions …

python nonetype
Python Script returns unintended "None" after execution of a function

Background: total beginner to Python; searched about this question but the answer I found was more about "what" than "why"; …

python printing syntax python-3.x nonetype
matplotlib: Plot numpy arrays with None as values

I have an array that looks like: k = numpy.array([(1.,0.001), (1.1, 0.002), (None, None), (1.2, 0.003), (0.99, 0.004)]) I want to plot the values that are …

python arrays numpy matplotlib nonetype
Django Authenticate returns None

I have the following code snippet: user = User(username='[email protected]',email='[email protected]') user.set_password('pass') …

django authentication nonetype
Where is the NoneType located in Python 3.x?

In Python 3, I would like to check whether value is either string or None. One way to do this is …

python python-3.x types nonetype
Which way is better to skip the 'NoneType' variable?

A list contains several NoneType elements. To skip the NoneType, for item in list : if item is not None : fp.…

python nonetype
Python min/max on None type

I noticed that while the 'max' function do well on None type: In [1]: max(None, 1) Out[1]: 1 'min' function doesn't return …

python min nonetype
Removing item from list causes the list to become NoneType

I imagine there is a simple solution that I am overlooking. Better that than a complicated one, right? Simply put: …

python list nonetype