Skip to main content
Seasoned ⭐️⭐️⭐️
May 7, 2024
Solved

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

  • May 7, 2024
  • 3 replies
  • 114 views

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. 

    3 replies

    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
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    May 21, 2024

    Hi @Lavanya Kannan,

    Did the above help you?  

    Dilini Fernando
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    May 30, 2024

    Hi @Lavanya Kannan,

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