官术网_书友最值得收藏!

Introduction to the cbsodata Python package

To install the cbsodata Python package, perform the following steps:

  1. 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:

  1. 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']) 
  1. 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.

  1. 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.get_table_list() 
print(list) 
主站蜘蛛池模板: 鄯善县| 许昌市| 涞源县| 顺昌县| 肥西县| 黄骅市| 沅陵县| 永丰县| 南城县| 六安市| 尉氏县| 随州市| 津市市| 尚义县| 卓尼县| 望奎县| 岑溪市| 建昌县| 绥德县| 依兰县| 全州县| 册亨县| 闽侯县| 册亨县| 尚义县| 蕲春县| 额尔古纳市| 寿阳县| 万山特区| 温宿县| 康平县| 山东省| 湘潭县| 玛曲县| 车致| 义马市| 论坛| 长治市| 泰和县| 苍南县| 东平县|