sensortoolkit.calculate._convert_temp.convert_temp
- convert_temp(data, from_unit='F', to_unit='C', **kwargs)[source]
Convert temperature from one unit basis to another.
Can convert from Fahrenheit to Celsius or vice versa.
- Parameters
data (pandas DataFrame or pandas Series) – DESCRIPTION.
from_unit (str, optional) – DESCRIPTION. Defaults to ‘F’.
to_unit (str, optional) – DESCRIPTION. Defaults to ‘C’.
- Raises
KeyError – DESCRIPTION.
AttributeError – DESCRIPTION.
- Returns
DESCRIPTION.
- Return type
converted_data (pandas DataFrame)