Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の DataFrame には 2 つの列があり、どちらも NaN 値を持っています。列 user_email だけで NaN を含む行を削除する必要があります。
ただし、使用df['user_email'] = df['user_email'].dropna()しましたが、まったく同じ DataFrame が返され、2 番目の列のすべての NaN 値はそのままでした。
df['user_email'] = df['user_email'].dropna()
2 列目に NaN がある行を削除するにはどうすればよいですか?