- Hands-On Data Science with Anaconda
- Dr. Yuxing Yan James Yan
- 128字
- 2021-06-25 21:08:50
Introduction to the cbsodata Python package
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.get_table_list() print(list)
推薦閱讀
- 輕輕松松自動(dòng)化測(cè)試
- 智能傳感器技術(shù)與應(yīng)用
- Getting Started with Oracle SOA B2B Integration:A Hands-On Tutorial
- Visual FoxPro 6.0數(shù)據(jù)庫(kù)與程序設(shè)計(jì)
- 2018西門子工業(yè)專家會(huì)議論文集(上)
- Java開(kāi)發(fā)技術(shù)全程指南
- 讓每張照片都成為佳作的Photoshop后期技法
- 21天學(xué)通Visual Basic
- 傳感器與新聞
- 筆記本電腦維修90個(gè)精選實(shí)例
- 步步驚“芯”
- Photoshop CS4數(shù)碼照片處理入門、進(jìn)階與提高
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)訓(xùn)(職業(yè)模塊)
- 穿越計(jì)算機(jī)的迷霧
- C#編程兵書(shū)