Skip to main content
Seasoned ⭐️⭐️⭐️
March 24, 2025
Solved

Learn to Use the Cognite Python SDK in the data engineer course

so in the Learn to Use the Cognite Python SDK  in the data engineer course , I got stuck on the hands on test.as   in the readme file after I created a dataset and a root assets I just do not know how can I  do this section :

 

- Read the `all_countries.csv` file as a dataframe and list all the unique regions in the world.

- For each geographical region, create a corresponding CDF asset that is under the "global" root asset and is associated with the "world_info" data set.

- Next, create country-level assets using the data from the CSV and link them to their corresponding region-level assets.

 

Ali-AkramAnswer
Seasoned ⭐️⭐️⭐️
March 25, 2025

Thank you I got the problem solved. I do not know why but the code was not running for some reason but it worked fine after trying it with a new copy of the repository

2 replies

Sofie Haug
Expert ⭐️⭐️⭐️⭐️
Cognite Academy Instructor
March 25, 2025

Hi ​@Ali-Akram 

Where did you get stuck? and what error message or similar it you receive? 

 

 

Sofie | Cognite Academy
Ali-AkramAuthorAnswer
Seasoned ⭐️⭐️⭐️
March 25, 2025

Thank you I got the problem solved. I do not know why but the code was not running for some reason but it worked fine after trying it with a new copy of the repository