forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up
decode_cf_datetime
(pydata#1414)
* Speed up `decode_cf_datetime` Instead of casting the input numeric dates to float, they are casted to nanoseconds as integer which makes `pd.to_timedelta()` work much faster (x100 speedup on my machine) * Moved _NS_PER_TIME_DELTA to top of module file * Added entry to `whats-new.rst`
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters