pydpeet.add_soh#
- pydpeet.add_soh(df, neware_bool=True, df_primitives=None, config=None, verbose=True)[source]#
Calculate State of Health (SOH) for the given battery test data.
The State of Health is calculated as the ratio of the current capacity to the reference capacity (C_ref).
Parameters: df (pandas.DataFrame): Input DataFrame containing battery test data df_primitives (pandas.DataFrame, optional): DataFrame containing primitive battery test data config (BatteryConfig, optional): Configuration object containing battery test parameters
Returns: pandas.DataFrame: DataFrame with added ‘SOH’ column