convert_coords_df_to_df_sklearn_transform#
- ktch.io.convert_coords_df_to_df_sklearn_transform(df_coords: DataFrame) DataFrame[source]#
Convert a coordinate DataFrame to sklearn-compatible wide format.
- Parameters:
- df_coordspd.DataFrame
DataFrame with
MultiIndex (specimen_id, coord_id)and columns(x, y [, z]).
- Returns:
- df_widepd.DataFrame
DataFrame with index
specimen_idand columns(coord_id, axis), compatible with sklearn transformers.