pydpeet.add_power#
- pydpeet.add_power(df, verbose=True)[source]#
Calculates power [W] from ‘Current[A]’ and ‘Voltage[V]’ columns and adds it as a new column.
Parameters: - df (pandas.DataFrame): DataFrame containing ‘Current[A]’ and ‘Voltage[V]’ columns
Returns: - pandas.DataFrame: DataFrame with added ‘Power[W]’ column