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

A BPt style Scope used to select a subset of column(s) in which to apply the current function to. See Scope for more information on how this can be applied.

default = 'category'
inplacebool, optional

If True, perform the current function inplace and return None.

default = False