ktch.datasets
.convert_coords_df_to_df_sklearn_transform#
- ktch.datasets.convert_coords_df_to_df_sklearn_transform(df_coords)[source]#
Convert a dataframe of coordinates to a dataframe of coordinates for sklearn transformers.
- Parameters:
- df_coords: pandas.DataFrame of index (specimen_id, coord_id), columns (axis (x, y (, z)))
The dataframe of coordinates.
- Returns:
- df_coords_new: pandas.DataFrame of index (specimen_id), columns (coord_id, axis)
The dataframe of coordinates compatible with input of scikit-learn transformers.