Skip to main content
Solved

Data in 'Learn to Use the Cognite Python SDK' is not as intended


Hi, I’m doing the Learn to Use the Cognite Python SDK module in the Data Scientist basics seems incorrect.

For example, I’m in the notebook `2_List_Search_Retrieve.ipynb` and the data presented appears to be very random, and not industrial data. When I run a query like:

`c.assets.list(metadata={'ELC_STATUS_ID': '1211'},limit=5)`  this comes back empty because there is no industrial data in any of the the datasets. In fact, almost all of the datsets in the c.data_sets.list() command are Deprecated and archived.

It looks to me like potentially the datasets are tests that people have made. 

I would really like to be able to see some more realistic data in the dataset used for exploring the tool. Please let me know how I can do that, if anyone knows!

Best answer by Sofie Haug

Thanks for the info @lchutny 

As you follow along the notebooks, you will write some data yourself. This results in there being some additional “random” data in there generated by the learners. We do clean up every 14 days, but there will always be some extra data there. 

I will need to review the notebook for the “empty” answers you mentioned. I hope you still got the chance to learn to use Cognite Python SDK.

 

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

6 replies

Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+7
  • Cognite Academy Instructor
  • 157 replies
  • April 10, 2024

Hi @lchutny 

Are you using the notebook that belongs to the course? From the authentication part - could you tell me the cdf-project you are connected to?

 


  • Author
  • 3 replies
  • April 10, 2024

Hi, Sofie. Yes, I’m using the notebook as downloaded from the Github repo. The cdf project is `ds-basics`

CDF_CLUSTER = "westeurope-1"

COGNITE_PROJECT = "ds-basics"

BASE_URL = f"https://{CDF_CLUSTER}.cognitedata.com"

SCOPES = [f"{BASE_URL}/.default"]


Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+7
  • Cognite Academy Instructor
  • 157 replies
  • Answer
  • April 11, 2024

Thanks for the info @lchutny 

As you follow along the notebooks, you will write some data yourself. This results in there being some additional “random” data in there generated by the learners. We do clean up every 14 days, but there will always be some extra data there. 

I will need to review the notebook for the “empty” answers you mentioned. I hope you still got the chance to learn to use Cognite Python SDK.

 


  • Author
  • 3 replies
  • April 16, 2024

Hi, Sofie. Finally getting back to this, and one of the places that there are empty cells in workbook 2: metadata Filtering - essentially there are no metadata keys

c.assets.list(limit=5).to_pandas()['metadata'][4] 

returns no results. So the subsequent list returns nothing either:

c.assets.list(metadata={'ELC_STATUS_ID': '1211'},limit=5)

But I’m still able to work through the notebook.


Sofie Haug
Seasoned Practitioner
Forum|alt.badge.img+7
  • Cognite Academy Instructor
  • 157 replies
  • April 17, 2024

Thanks for the heads up @lchutny  

I’ll add it to my to-do list to get i checked. In the meantime just continue. 

 

 


  • Author
  • 3 replies
  • April 17, 2024

@Sofie Haug a few more for you:

  1. none of the datasets have any metadata, so the section on filtering using metadata returns nothing.
  2. None of the timeseries have step-wise data, so the filter on ‘is_step=True’ returns nothing
  3. The datasets from the Open Industrial Data project seem to be missing, a fuzzy search on name =”23-HA-9114” returns nothing.

Subsequently the ‘Try it yourself’ section where you have to search for a compressor and find all time series in the asset’s subtree doesn’t work. Asset “2ND STAGE COMPRESSOR-PH” doesn’t exist in the ds-basics workspace any longer.


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