판다스 라이브러리 Series
serTest2 - Series 생성하기!import pandas as pdimport numpy as np myList = [10,20,30,40] #1차원d = {'aa':10,'bb':20,'cc':30} #1차원t = (10,20,30,40) #1차원 sr = pd.Series(myList, dtype=np.int32) #Series 생성하기, List 가능sr sr1 = pd.Series(d) #Series 생성하기, Dictionary 가능sr1sr2 = pd.Series(t) #Series 생성하기, Tuple가능print(sr2)print(sr2[1]) sr = pd.Series(myList, index=['a','b','c','d'], dtype=np.int32, name = "byb")..
2019. 3. 12.