preheat_open.measurements.get_measurements
- preheat_open.measurements.get_measurements(obj, requests=None, date_range=None, **kwargs)
Retrieves measurements for the specified object and components.
- Parameters:
obj (Union[Device, Location]) – The object to retrieve measurements for.
components (list[Component] | Query | dict) – The components to retrieve measurements for.
date_range (DateRange, optional) – The date range for the measurements.
mapper (MapApplier, optional) – The mapper to use for renaming DataFrame columns.
kwargs – Additional keyword arguments.
- Returns:
A DataFrame containing the measurements.
- Return type:
pd.DataFrame