Skip to main content
Solved

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


Forum|alt.badge.img+3

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

Best answer by Dilini Fernando

Hi @Lavanya Kannan,

As of now, I’m closing this topic. Please feel free to start a new post if you have any questions. 

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+1
  • Practitioner
  • May 8, 2024

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


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2

Hi @Lavanya Kannan,

Did the above help you?  


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2

Hi @Lavanya Kannan,

As of now, I’m closing this topic. Please feel free to start a new post if you have any questions. 


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings