NaN in columns produces TypeError · Issue #5016 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@alefnula

Description

@alefnula

pd.DataFrame([[1,2,3]], columns=[1.1,2.2,np.nan]) Traceback (most recent call last): ... TypeError: ("'NoneType' object is not iterable", u'occurred at index 2.2')

Is this a bug or a feature? I don't see anything about that in the v0.13.0.txt, and it worked in 0.12:

pd.DataFrame([[1,2,3]], columns=[1.1,2.2,np.nan]) 1.1 2.2 NaN 0 1 2 3