خرید بک لینک

Vote count: 0

I'm converting a .ods spreadsheet to a Pandas DataFrame. I have whole columns and rows I'd like to drop because they contain only "None". As "None" is a string, I have:

pandas.DataFrame.replace("None", numpy.nan)

...on which I call: .dropna(how='all')

Is there a pandas equivalent to numpy.nan?

Is there a way to use .dropna() with the *string "None" rather than NaN?

asked 19 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 4:12

صفحه بندی