08_Vector_TimeSeries_SNOTEL_prep
Contents
08_Vector_TimeSeries_SNOTEL_prep¶
Introduction¶
Static spatial analysis is powerful, but things often vary in time…
Options to represent time in Python¶
https://csit.kutztown.edu/~schwesin/fall20/csc223/lectures/Pandas_Time_Series.html
Multiple options to represent datetime objects - easy to convert
Python datetime¶
Built-in module called
datetimewhich contains classes fordatetimeobject (andtimedeltaobject) - can be confusing
NumPy datetime64¶
Pandas Timestamp¶
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timestamp.html
https://pandas.pydata.org/docs/user_guide/timeseries.html#overview
DatetimeIndexpd.to_datetime()Accepts “int, float, str, datetime, list, tuple, 1-d array, Series, DataFrame/dict-like”