baybe.utils.dataframe.pretty_print_df¶
- baybe.utils.dataframe.pretty_print_df(df: DataFrame, max_rows: int = 6, max_columns: int = 4, max_colwidth: int = 16, precision: int = 3)[source]¶
Convert a dataframe into a pretty/readable format.
This function returns a customized str representation of the dataframe. In case the dataframe is empty, it returns a corresponding statement.
- Parameters:
- Return type:
- Returns:
The values to be printed as a str table.