Skip to content

Commit ec77315

Browse files
committed
Merge pull request #3060 from wuan/nanosecond_time
ENH: support for nanosecond time in offset and period
2 parents 5caf660 + 2e79864 commit ec77315

19 files changed

+911
-486
lines changed

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,11 @@ pandas/io/*.dat
3030
pandas/io/*.json
3131
*.log
3232
.noseids
33-
34-
.idea/libraries/sass_stdlib.xml
35-
36-
.idea/pandas.iml
3733
.build_cache_dir
3834
.vagrant
3935
*.whl
4036
**/wheelhouse/*
41-
4237
.project
4338
.pydevproject
4439
.settings
40+
.idea

doc/source/v0.13.0.txt

+23
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,29 @@ Enhancements
427427
the file if the data has correctly separated and properly aligned columns
428428
using the delimiter provided to the function (:issue:`4488`).
429429

430+
- support for nanosecond times in periods
431+
432+
.. warning::
433+
434+
These operations require ``numpy >= 1.7``
435+
436+
Period conversions in the range of seconds and below were reworked and extended
437+
up to nanoseconds. Periods in the nanosecond range are now available.
438+
439+
.. ipython:: python
440+
date_range('2013-01-01', periods=5, freq='5N')
441+
442+
or with frequency as offset
443+
444+
.. ipython:: python
445+
date_range('2013-01-01', periods=5, freq=pd.offsets.Nano(5))
446+
447+
Timestamps can be modified in the nanosecond range
448+
449+
.. ipython:: python
450+
t = Timestamp('20130101 09:01:02')
451+
t + pd.datetools.Nano(123)
452+
430453
.. _whatsnew_0130.experimental:
431454

432455
Experimental

0 commit comments

Comments
 (0)