round_protocol_df#

mlquantify.utils.general.round_protocol_df(dataframe: DataFrame, frac: int = 3)[source]#

Round the columns of a protocol dataframe to a specified number of decimal places.

Parameters:
dataframepd.DataFrame

Protocol dataframe to round.

fracint

Number of decimal places to round to.

Returns:
pd.DataFrame

Protocol dataFrame with the columns rounded to the specified number of decimal places.