Jupyter Notebook(持续更新)

1.引用Pandas

import pandas as pd

2.创建DataFrame

bb=pd.DataFrame(enron_data)

3.查看列 & 行

dataFrame.shape[1]

dataFrame.shape[0]

4.选择

选择行:

data.loc['a',['w','x']] #返回‘a’行'w'、'x'列,这种用于选取行索引列索引已知

参考:http://blog.csdn.net/xiaodongxiexie/article/details/53108959

 

 

参考内容:

http://blog.sina.com.cn/s/blog_4c9dc2a10102vkhd.html

posted @ 2017-03-05 16:28  Asa Wang  阅读(153)  评论(0编辑  收藏  举报