在Pandas中,我可以使用df.dropna()删除任何NaN条目.Pandas中是否有类似的东西可以删除非有限(例如Inf)条目?
Ame*_*ina 23
您可以使用:
with pd.option_context('mode.use_inf_as_null', True):
df = df.dropna()
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9695 次 |
| 最近记录: |