BPt.Dataset.copy_as_non_input#
- Dataset.copy_as_non_input(col, new_col, copy_scopes=True, inplace=False)[source]#
This method is a used for making a copy of an existing column, ordinalizing it and then setting it to have role = non input.
- Parameters
- colstr
The name of the loaded column to make a copy of.
- new_colstr
The new name of the non input and ordinalized column.
- copy_scopesbool, optional
- If the associated scopes with the original column should be copied over as well. If False, then the new col will only have scope ‘category’.The scopes will be copied before ordinalizing, such that the new copy will have the scope ‘category’ regardless of if that was a scope of the original variable.
default = True
- inplacebool, optional
If True, perform the current function inplace and return None.
default = False