baybe.utils.dataframe.normalize_input_dtypes¶
- baybe.utils.dataframe.normalize_input_dtypes(df: DataFrame, objects: Iterable[_T], /)[source]¶
Ensure that the input dataframe has the expected dtypes for all columns.
- Parameters:
- Return type:
- Returns:
The original dataframe if there are no dtype issues. Otherwise, a copy with columns converted to expected dtypes.