larch.Dataset.dc.set_dtypes#
- Dataset.dc.set_dtypes(dtypes, inplace=False, on_error='warn')#
Set the dtypes for the variables in this Dataset.
- Parameters:
dtypes (Mapping or DataFrame) – Mapping of names to dtypes, or a DataFrame to infer such a mapping.
inplace (bool, default False) – Whether to convert dtypes inplace.
on_error ({'warn', 'raise', 'ignore'}) – What to do when a type conversion triggers an error.
- Returns:
Dataset