data.where(data.notnull(), None)
dataframe NaN -> None
原文:https://www.cnblogs.com/Tw1st-Fate/p/11653266.html