摘要:
In [2]: import numpy as np import pandas as pd In [3]: ser = pd.Series([5,0,3,8,4],index=['red','blue','yellow','white','green']) ser.index In [21]: s 阅读全文
摘要:
import numpy as np import pandas as pd s = pd.Series([12,-4,4,8]) s Out[4]: 0 12 1 -4 2 4 3 8 dtype: int64 s = pd.Series([12,-4,4,8],index=['a','b','c','d']) s Out[6]: a 12 b ... 阅读全文