Skip to content

Commit 725900f

Browse files
authored
Improve dropna subset example (#35337)
1 parent 9b4d875 commit 725900f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4966,9 +4966,10 @@ def dropna(self, axis=0, how="any", thresh=None, subset=None, inplace=False):
49664966
49674967
Define in which columns to look for missing values.
49684968
4969-
>>> df.dropna(subset=['name', 'born'])
4969+
>>> df.dropna(subset=['name', 'toy'])
49704970
name toy born
49714971
1 Batman Batmobile 1940-04-25
4972+
2 Catwoman Bullwhip NaT
49724973
49734974
Keep the DataFrame with valid entries in the same variable.
49744975

0 commit comments

Comments
 (0)