Pandas
Pandas Panel datas numpy와 통합하여 빠름 Series DataFrame loc, iloc, drop, reset_index, fill_value, lambda, map, apply, applymap, replace Built-in function describe, unique, sort_values, corr, cov, corrwith, pd.options.display Groupby split -> apply -> combine groupby, hierarchical index, unstack, reset_index, swaplevel, sort_index, sort_values, get_group, aggregation, transform, filter Pivot column에 l..
Numpy
Numerical Python 일반 list에 비해 빠르고 효율적 python의 list는 mem address를 저장하지만, ndarray는 값을 직접 저장 list는 값의 변경이 용이하고 ndarray는 속도가 빠름 C++, 포트란 등과 통합 가능 import numpy as np 국룰 하나의 data type만 넣을 수 있음 (dynamic typing x) a = [1, 2, 3] b = [3, 2, 1] a[0] is b[-1] # True a = np.array(a) b = np.array(b) a[0] is b[-1] # False shape : array의 dimension 반환 (tuple) 1d : (col,), 2d : (row, col), 3d : (channel, row, col)..
Data Structure
Stack Last In First Out Queue First In First Out Tuple immutable한 list Set 중복 x, non-sequential union, intersection, difference Dict tuple(Key, Value) Collections built-in 구조 deque, Counter, OrderedDict, defaultdict, namedtuple Deque Linked list 지원 rotate, reverse, appendleft 등 가능 list보다 빠름 Ordered Dict 입력 순서를 보장하는 dict python 3.6이상부터는 기본 dict도 보장 default Dict default value를 지정가능한 dict key가 존재하지..