I can not update (push) the existing timeseries by client.time_series.data.insert() method. data_points = [{'timestamp':pd.to_datetime(df5.index[i]).timestamp()*1000,'value':df5['My Feature'].iloc[i]} for i in range(len(df5))]
client.time_series.data.insert(data_points, external_id=external_id_feature) The way I followed is : trim the specific date-range, insert the timeseries. Is there any standard way to update the existing time-series ??
Best answer by Håkon V. Treider
What error do you encounter?
The SDK documentation lists two ways to insert datapoints, either as a list of tuples or a list of dictionaries . Check it out here: https://cognite-sdk-python.readthedocs-hosted.com/en/latest/time_series.html#cognite.client._api.datapoints.DatapointsAPI.insert
If you want to insert directly from a pandas DataFrame, you can do so. Check out the documentation here: https://cognite-sdk-python.readthedocs-hosted.com/en/latest/time_series.html#insert-pandas-dataframe