I am doing some hands-on exercises, but I am stuck in a point here.
The task is to Add some time series data:
- Create a time series object for each country asset in CDF called <country>_population
and associate it with its corresponding country asset.
- Remember to associate the data as well to the data set that you created.
- As an example, the time series for Aruba would be called
Aruba_population
.
- Load the data from populations_postprocessed.csv
into a pandas dataframe.
- Insert the data for each country in this dataframe using client.time_series.data.insert_dataframe
.
- As a check, retrieve the latest population data for the countries of Latvia, Guatemala, and Benin.
- Calculate the total population of the Europe region using the Asset Hierarchy and the time series data.
The point I stuck on:
=> “Insert the data for each country in this dataframe using client.time_series.data.insert_dataframe
”.
I am not sure what does this means, although I had done an early exercise …
“Insert the population data as a dataframe”:client.time_series.data.insert_dataframe(df, external_id_headers=False)
Could you explain me how all of this works, please?