File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -498,10 +498,7 @@ Due to implementation details the methods show up here as methods of the
498
498
:toctree: generated/
499
499
500
500
TimedeltaProperties.days
501
- TimedeltaProperties.hours
502
- TimedeltaProperties.minutes
503
501
TimedeltaProperties.seconds
504
- TimedeltaProperties.milliseconds
505
502
TimedeltaProperties.microseconds
506
503
TimedeltaProperties.nanoseconds
507
504
TimedeltaProperties.components
@@ -1358,10 +1355,7 @@ Components
1358
1355
:toctree: generated/
1359
1356
1360
1357
TimedeltaIndex.days
1361
- TimedeltaIndex.hours
1362
- TimedeltaIndex.minutes
1363
1358
TimedeltaIndex.seconds
1364
- TimedeltaIndex.milliseconds
1365
1359
TimedeltaIndex.microseconds
1366
1360
TimedeltaIndex.nanoseconds
1367
1361
TimedeltaIndex.components
Original file line number Diff line number Diff line change @@ -139,6 +139,15 @@ def to_pytimedelta(self):
139
139
140
140
@property
141
141
def components (self ):
142
+ """
143
+ Return a dataframe of the components (days, hours, minutes,
144
+ seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas.
145
+
146
+ Returns
147
+ -------
148
+ a DataFrame
149
+
150
+ """
142
151
return self .values .components .set_index (self .index )
143
152
144
153
TimedeltaProperties ._add_delegate_accessors (delegate = TimedeltaIndex ,
Original file line number Diff line number Diff line change @@ -370,7 +370,8 @@ def nanoseconds(self):
370
370
@property
371
371
def components (self ):
372
372
"""
373
- Return a dataframe of the components of the Timedeltas
373
+ Return a dataframe of the components (days, hours, minutes,
374
+ seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas.
374
375
375
376
Returns
376
377
-------
You can’t perform that action at this time.
0 commit comments