You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add DatetimeAccessor for accessing datetime fields via .dt attribute (#1356)
* Add DatetimeAccessor for accessing datetime fields via `.dt` attribute
* Cleaning up unit tests
* Cleaning up comments and warnings in accessors
* Indirectly access pandas tslib through Series accessors
* Re-factor injection of datetime field accessor properties
* Undo loop/injection of _get_date_field accessors
* Remove public-facing dt property
* Remove extra 'field' argument from _tslib_field_accessor
* Added support for dask arrays
* Added dask test cases
Fixed a bug where data wasn't computed in correct order
* Simplified _get_date_field for both dask/numpy arrays; additional code review cleanups
* Fixing flake8 complaints
* Adding whats-new entry
* Updated timeseries docs with note about dt accessor
* Moved season accessor to DatetimeAccessor
* Re-factor virtual variable logic to lean on DateTimeAccessor
* Added "Returns" documentation to _get_date_field
Fixed imports to facilitate more direct implementation of DateTimeAccessor as a property in DataArray
Moved _access_through_series to a top-level function in accessors.py so that dask serialization will hopefully work a bit better
* Adding timestamp accessor
* Hard-coding expected dtypes for each datetime field
* Fix typo in non-datetime virtual variable access
* Update What's New and timeseries docs
0 commit comments