[pandas] [판다스] 판다스 기초
pandas는 크게 3가지 Object로 구성되어있다. Index, Series, DataFrame Index object Series와 DataFrame은 index 객체를 포함하고있고, index를 바탕으로 데이터를 조작/변형할 수 있다. Series는 1개의 index를, DataFrame은 2개의 index(row index, column index)를 갖고 있다. Index는 immutable array이고 ordered set이다. multi-set이므로 repeated value를 가질 수 있다. ind = pd.Index([2, 3, 5, 5, 11]) print(ind) print(ind.size, ind.shape, ind.ndim, ind.dtype) ----- result -----..
2023. 2. 15.