This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一个数据框,我想在其中删除每一行df['Rank'] < 16,当我这样做时,df = df['Rank'].where(df['Rank'] < 16)它会给出很多 NaN 值(应该如此),然后删除这些值我可以做df = df.dropna,但问题是这df.dropna将删除在至少一个 Nan 值,我想删除所有值为 Nan 的行。请展示多种方法并解释它们,因为我想学习而不仅仅是复制粘贴代码:)