pandas數據的索引操做

# coding: utf-8 # # Series索引 # ## 行索引 import pandas as pd import numpy as np ser_obj = pd.Series(range(5),index=['a','b','c','d','e']) print ser_obj # 行索引獲單個值 print ser_obj['b'],ser_obj['e'] # 切片索引
相關文章
相關標籤/搜索