I want to retrieve data frame based on external IDs for the past 24 hours. So, if current date = 08/15/2023, it should try to get the previous day’s datapoints for 24 hours i.e, from 08/14/2023 00:00:00 to 08/14/2023 23:59:59.
Please share with the actual code on how to put the parameters.
from cognite.client import CogniteClient
client = CogniteClient()
df = client.time_series.data.retrieve_dataframe(
... id=12345,
... start=<What to fill here>,
... end=<what to fill here>)
Best answer by HaydenH
View original