pandas中Series數組建立方法

import numpy as np import pandas as pd ar = np.random.rand(5) # s = pd.Series(ar) s = pd.Series(ar, index = list("abcde")) print(s) print(type(s)) print("-------------") print(s.index, type(s.index)
相關文章
相關標籤/搜索