这个问题的解决方案是使用DataFrame.update: df.update(df.loc[idx[:,mask_1] ... , 用0 取代nan. In [5]: df['ColA'].fillna(value=0, inplace=True)In [6]: df.
確定! 回上一頁