BPt.Dataset.nan_to_class#
- Dataset.nan_to_class(scope='category', inplace=False)[source]#
This method will cast any columns that were not categorical that are passed here to categorical. Will also ordinally encode them if they have not already been encoded (e.g., by either via ordinalize, binarize, or a similar function…).
- scopeScope
default = 'category'
- inplacebool, optional
If True, perform the current function inplace and return None.
default = False