pandas의 Series 개체의 인덱싱값 지정
python내장 리스트와 달리 인덱스값을 사용자가 지정할 수 있다. 기존 python의 리스트 list_temp = [1,2,3,4,5] list_temp[0] = 1 pandas의 Series 개체 series_temp = Series([1,2,3,4,5], index=['01','02','03','04','05']) Series 개체의 접근 시 index와 value로 접근 가능 for idx in series_temp.values: print(idx) for value in series_temp.index: print(idx) Series 개체가 index를 임의로 정함으로 인해 가질 수 있는 장점으로 인해 얻을 수 있는 또하나의 형태 series_temp_a = Series([1,2,3,4,5],..
더보기