import pandas as pd
import numpy as np
pd.Series( ndarray_a ) : Series는 pandas module의 class 중 하나임
- dtype (default) : 'int64' / 'float64' , dtype(np.nan) = float
- default index는 0, 1, 2, ...
- index parameter에 list를 넣어주면 list처럼 indexing됨
- index 차이에 따른 두 series의 summation
- index가 다르면 concatenation / index가 같으면 summation
a.name = 'Series name'
a.index.name = 'Index name'
Series creation from dictionary
- dict에서 pd.Series로 변환 가능, but set은 order가 없으므로 불가능
isnull( )
pd.isnull( series_a ) = series_a.isnull( )
notnull( )
pd.notnull( series_a ) = series_a.notnull( )
'공부는 언제까지 해야 하나' 카테고리의 다른 글
[Python] pandas module - Time Series Data (0) | 2021.02.04 |
---|---|
[Python] pandas module - DataFrame object (0) | 2021.02.04 |
[Python] numpy module - File IO (0) | 2021.02.03 |
[Python] numpy module - matrix operation (0) | 2021.02.03 |
[Python] numpy module - mathematics / statistics (0) | 2021.02.03 |