To install the cbsodata Python package, perform the following steps:
- We can use one of the following commands:
conda install cbsodata pip install cbsodata
For more detailed instructions about how to install the Python package, please see Chapter 6, Managing Packages:
- The next program shows one example of using the package:
import pandas as pd import cbsodata as cb name='82070ENG' data = pd.DataFrame(cb.get_data(name)) print(data.head()) info=cb.get_info(name) print(info['Title'])
- The corresponding output is shown in the following screenshot:

The last line in the screenshot gives the name of the dataset. In the previous example, we used the dataset with the name 82070ENG.
- To find out all the names of lists, we use the get_table_list() function; see the following code:
import cbsodata as cb list=cb...