DataFrame.dropNa
Remove missing values (NaNs, undefined, null) for DataFrame
danfo.DataFrame.dropNa(axis, options) [source]
Parameters | Type | Description | Default |
---|---|---|---|
axis | Int | 0 or 1. If 0, drop columns with NaNs, if 1, drop rows with NaNs | 1 |
options | Object | inplace: Boolean indicating whether to perform the operation inplace or not. Defaults to false | {inplace: false} |
Examples
Drop rows (axis=0) with missing values
Drop columns (axis=1) with missing values
Last updated