Question

client.datapoints.retrieve_dataframe() returns an error 'CogniteClient' object has no attribute 'datapoints'

  • 8 May 2024
  • 1 reply
  • 13 views

Badge +2

I am facing this error in the data science course on “creating cognite functions” with cognite SDK. In previous courses I had fixed this error by replacing the “datapoints” keyword with “time_series”. However, I would like to know if I am probably not using the write packages; OR not know if the commands are deprecated and have new function names in newer versions. Kindly let me know - I am trying to finish these courses before my local boot camp next week.

Thanks,

Lavanya


1 reply

Userlevel 1
Badge

Hi @Lavanya Kannan 

Based on the documentation, the latest Cognite SDK (7.42.0) utilizes the following syntax to retrieve datapoints:

client.time_series.data.retrieve_dataframe()

Please refer to Time Series — cognite-sdk 7.42.0 documentation (readthedocs-hosted.com)

 

Could you update the notebook accordingly with the provided syntax and verify if the issue persists?

 

BR

Deelaka

Reply