pandas.Index.dropna
pandas 3.1.1 · Index objects · method
Drop entries with missing values. For DataFrames, subset restricts the columns considered when dropping rows.
Call syntax
Index.dropna(how='any')Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
how |
Optional Positional or keyword Default 'any' |
{'any', 'all'} Choose a policy such as a join type or a missing-value removal rule. |
Returns
Index