You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

163 lines
4.6 KiB

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"__通过观察、测量等工作,林地里的鸟类活动数据,如鸟的种类、数量、行为等,被定期记录下来。这些描述鸟类活动的数据,有数值、文本、图形、图像等形式。为了更好ode存储、处理这些野外采集来的数据,科学家将他们录入计算机中,如表所示。__"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"* __运行下个单元的代码试试看!__"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>鸟的种类</th>\n",
" <th>数量(只)</th>\n",
" <th>栖息取食基层</th>\n",
" <th>行为</th>\n",
" <th>树牌号</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>灰眶雀鹛</td>\n",
" <td>5</td>\n",
" <td>灌丛</td>\n",
" <td>鸣叫</td>\n",
" <td>2130198</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>灰眶雀鹛</td>\n",
" <td>6</td>\n",
" <td>灌丛</td>\n",
" <td>鸣叫</td>\n",
" <td>2130123</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>白头鹎</td>\n",
" <td>5</td>\n",
" <td>冠中上</td>\n",
" <td>鸣叫</td>\n",
" <td>4080059</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>黄眉柳莺</td>\n",
" <td>2</td>\n",
" <td>冠中上</td>\n",
" <td>觅食</td>\n",
" <td>3080061</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>黑鹎</td>\n",
" <td>9</td>\n",
" <td>冠上</td>\n",
" <td>飞行</td>\n",
" <td>5060137</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>黄眉柳莺</td>\n",
" <td>1</td>\n",
" <td>冠中下</td>\n",
" <td>跳跃</td>\n",
" <td>1090013</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>红头长尾山雀</td>\n",
" <td>20</td>\n",
" <td>整个冠层</td>\n",
" <td>觅食,啄树干</td>\n",
" <td>2100030</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" 鸟的种类 数量(只) 栖息取食基层 行为 树牌号\n",
"0 灰眶雀鹛 5 灌丛 鸣叫 2130198\n",
"1 灰眶雀鹛 6 灌丛 鸣叫 2130123\n",
"2 白头鹎 5 冠中上 鸣叫 4080059\n",
"3 黄眉柳莺 2 冠中上 觅食 3080061\n",
"4 黑鹎 9 冠上 飞行 5060137\n",
"5 黄眉柳莺 1 冠中下 跳跃 1090013\n",
"6 红头长尾山雀 20 整个冠层 觅食,啄树干 2100030"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"data = pd.read_csv(\"data_1.csv\")\n",
"data"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}