PSA: In pandas, use pd.isnull() if you value your sanity https://gist.github.com/makmanalp/579b66585b91769c2f8a … #python #pandas
-
-
Replying to @makmanalp
@makmanalp yup. np.nan is not a singleton like None1 reply 0 retweets 1 like -
Replying to @BagelDaughter
@BagelDaughter I think it should be, but it's not a language primitive so it doesn't really get enforced1 reply 0 retweets 0 likes -
Replying to @makmanalp
@makmanalp yep, np.nan is a floating point special value, and then pandas takes it and overloads it to represent any null value -> confusion1 reply 0 retweets 1 like
@makmanalp http://pandas.pydata.org/pandas-docs/stable/gotchas.html#nan-integer-na-values-and-na-type-promotions …
11:23 AM - 14 Aug 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.