코딩 공부/Pandas
-
Pandas와 친해지기(10분 Pandas) (2024-01-26~2024-02-02)코딩 공부/Pandas 2024. 2. 3. 13:24
Object creation (2024-01-26)¶ In [ ]: import numpy as np import pandas as pd In [ ]: s = pd.Series([1, 3, 5, np.nan, 6, 8]) s Out[ ]: 0 1.0 1 3.0 2 5.0 3 NaN 4 6.0 5 8.0 dtype: float64 In [ ]: dates = pd.date_range("20130101", periods=6) dates Out[ ]: DatetimeIndex(['2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04', '2013-01-05', '2013-01-06'], dtype='datetime64[ns]', freq='D') In [ ]: df =..