mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 02:42:36 +00:00
* fix(docs): added margin between sections * fix: images * readd old content for examples/images * fix: codespell * fix: codespell * fix: ga * fix: remove temp lorem ipsum * fix: docu config for edit page Co-authored-by: teh_coderer <me@tehcoderer.com>
26 lines
886 B
Markdown
Vendored
26 lines
886 B
Markdown
Vendored
---
|
|
title: clean
|
|
description: OpenBB Terminal Function
|
|
---
|
|
|
|
# clean
|
|
|
|
Clean a dataset by filling and dropping NaN values.
|
|
|
|
### Usage
|
|
|
|
```python
|
|
usage: clean [-f {rfill,cfill,rbfill,cbfill,rffill,bffill}] [--drop {rdrop,cdrop}]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| fill | The method of filling NaNs. This has options to fill rows (rfill, rbfill, rffill) or fill columns (cfill, cbfill, cffill). Furthermore, it has the option to forward fill and backward fill (up to --limit) which refer to how many rows/columns can be set equal to the last non-NaN value | | True | rfill, cfill, rbfill, cbfill, rffill, bffill |
|
|
| drop | The method of dropping NaNs. This either has the option rdrop (drop rows that contain NaNs) or cdrop (drop columns that contain NaNs) | | True | rdrop, cdrop |
|
|
---
|
|
|