Skip to main content

clean

Clean a dataset by filling and dropping NaN values.

Usage​

usage: clean [-f {rfill,cfill,rbfill,cbfill,rffill,bffill}] [--drop {rdrop,cdrop}]

Parameters​

NameDescriptionDefaultOptionalChoices
fillThe 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 valueTruerfill, cfill, rbfill, cbfill, rffill, bffill
dropThe method of dropping NaNs. This either has the option rdrop (drop rows that contain NaNs) or cdrop (drop columns that contain NaNs)Truerdrop, cdrop

On this page