Skip to content

DOC: delete removed Timedelta properties (see GH9257) from API overview #9318

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
Jan 21, 2015
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: 0 additions & 6 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,7 @@ Due to implementation details the methods show up here as methods of the
:toctree: generated/

TimedeltaProperties.days
TimedeltaProperties.hours
TimedeltaProperties.minutes
TimedeltaProperties.seconds
TimedeltaProperties.milliseconds
TimedeltaProperties.microseconds
TimedeltaProperties.nanoseconds
TimedeltaProperties.components
Expand Down Expand Up @@ -1358,10 +1355,7 @@ Components
:toctree: generated/

TimedeltaIndex.days
TimedeltaIndex.hours
TimedeltaIndex.minutes
TimedeltaIndex.seconds
TimedeltaIndex.milliseconds
TimedeltaIndex.microseconds
TimedeltaIndex.nanoseconds
TimedeltaIndex.components
Expand Down
9 changes: 9 additions & 0 deletions pandas/tseries/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ def to_pytimedelta(self):

@property
def components(self):
"""
Return a dataframe of the components (days, hours, minutes,
seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas.

Returns
-------
a DataFrame

"""
return self.values.components.set_index(self.index)

TimedeltaProperties._add_delegate_accessors(delegate=TimedeltaIndex,
Expand Down
3 changes: 2 additions & 1 deletion pandas/tseries/tdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ def nanoseconds(self):
@property
def components(self):
"""
Return a dataframe of the components of the Timedeltas
Return a dataframe of the components (days, hours, minutes,
seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas.

Returns
-------
Expand Down