替换方法 ## data是numpy数据,格式入下:data = [[nan, nan,'李幼斌','star'], [nan, nan,'孟非','star']], dtype=object)importpandasaspd data[pd.isna(data)] =None# 将nan替换为Nonedata= data.tolist()