Skip to main content
Madina Kholmatova
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
December 7, 2022

Data Scientist Basics learning path

  • December 7, 2022
  • 14 replies
  • 462 views

Cognite Academy is excited to share with you the new Data Scientist Basics learning path!

When your data is contextualized in Cognite Data Fusion, it’s time to start building your solutions. This new learning path on Cognite Academy, our e-learning portal, teaches you how to access the data with the APIs and SDKs that Cognite provides, and how to use Cognite and third party tools to analyze and visualize your data. The learning path is aimed at data scientists. However, solution architects, data engineers, and domain engineers with some coding knowledge can also find it useful and relevant.
 

By the end of the learning path, you will be able to:

  • Access the data using Cognite Python SDK. 

  • Build solutions to industrial use cases on Cognite Charts. 

  • Use Cognite Functions to deploy and schedule your Python function.

  • Connect Grafana and Power BI to a CDF project.

Upon successful completion, you’ll earn a certificate and gain the Data Scientist badge here on Cognite Hub.

Register for the learning path.

14 replies

Seasoned ⭐️⭐️⭐️
April 27, 2023

Hello,

In Cognite Functions course in Notebook 2 I’m getting error while cognite function run. But the handle runs perfectly on my local. Please help!

 

Here is the error log:

==================================================

  • 2023-04-27 10:42 Function started
  • The function terminated unexpectedly. Please contact Cognite support if the problem persists.
  • _point.py", line 455, in run_handle
  • result = handle(*function_argument_values)
  • File "/home/site/wwwroot/function/handler.py", line 41, in handle
  • df = client.datapoints.retrieve_dataframe(
  • AttributeError: 'CogniteClient' object has no attribute 'datapoints'
  • 2023-04-27 10:43 Function ended

================================================== 

 

Troubleshooting doc doesn’t have the error I’m facing https://docs.cognite.com/cdf/functions/known_issues/

roman.chesnokov
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
April 27, 2023

@Asan Arifov it seems that you use the latest version of cognite-sdk, and there you can retrieve datapoints like that

>>> from cognite.client import CogniteClient

>>> client = CogniteClient()

>>> dps = client.time_series.data.retrieve(id=42, start="2w-ago")

 

To resolve the issue you can either update the code or use the 5th version of SDK.

Seasoned ⭐️⭐️⭐️
April 28, 2023

Hi @roman.chesnokov, thanks..

So Cognite SDK versions are not backward compatible? Is it possible to specify what SDK version server have to use in cognite function requirements.txt?

roman.chesnokov
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
April 28, 2023

@Asan Arifov the major versions don't guarantee backward compatibility. Recently SDK was updated to version 6. But of course you can specify the version in requirements.