- 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)
推薦閱讀
- 大數(shù)據(jù)項目管理:從規(guī)劃到實現(xiàn)
- Getting Started with Oracle SOA B2B Integration:A Hands-On Tutorial
- 程序設(shè)計語言與編譯
- 網(wǎng)絡(luò)綜合布線技術(shù)
- Visual C# 2008開發(fā)技術(shù)詳解
- 大數(shù)據(jù)挑戰(zhàn)與NoSQL數(shù)據(jù)庫技術(shù)
- Troubleshooting OpenVPN
- 嵌入式Linux系統(tǒng)實用開發(fā)
- Mastering Exploratory Analysis with pandas
- 生物3D打印:從醫(yī)療輔具制造到細(xì)胞打印
- 重估:人工智能與賦能社會
- 數(shù)字多媒體技術(shù)基礎(chǔ)
- 傳感器原理及實用技術(shù)
- Mastering MongoDB 4.x
- DynamoDB Applied Design Patterns