Skip to content

ENH: support for nanosecond time in offset and period #3060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,11 @@ pandas/io/*.dat
pandas/io/*.json
*.log
.noseids

.idea/libraries/sass_stdlib.xml

.idea/pandas.iml
.build_cache_dir
.vagrant
*.whl
**/wheelhouse/*

.project
.pydevproject
.settings
.idea
23 changes: 23 additions & 0 deletions doc/source/v0.13.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,29 @@ Enhancements
the file if the data has correctly separated and properly aligned columns
using the delimiter provided to the function (:issue:`4488`).

- support for nanosecond times in periods

.. warning::

These operations require ``numpy >= 1.7``

Period conversions in the range of seconds and below were reworked and extended
up to nanoseconds. Periods in the nanosecond range are now available.

.. ipython:: python
date_range('2013-01-01', periods=5, freq='5N')

or with frequency as offset

.. ipython:: python
date_range('2013-01-01', periods=5, freq=pd.offsets.Nano(5))

Timestamps can be modified in the nanosecond range

.. ipython:: python
t = Timestamp('20130101 09:01:02')
t + pd.datetools.Nano(123)

.. _whatsnew_0130.experimental:

Experimental
Expand Down
Loading