File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
71
71
-i ES01 ` # For now it is ok if docstrings are missing the extended summary` \
72
72
-i " pandas.Series.dt PR01" ` # Accessors are implemented as classes, but we do not document the Parameters section` \
73
73
-i " pandas.MultiIndex.reorder_levels RT03,SA01" \
74
- -i " pandas.MultiIndex.to_frame RT03" \
75
74
-i " pandas.NA SA01" \
76
75
-i " pandas.NaT SA01" \
77
76
-i " pandas.Period.freq GL08" \
@@ -128,7 +127,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
128
127
-i " pandas.Timedelta.to_timedelta64 SA01" \
129
128
-i " pandas.Timedelta.total_seconds SA01" \
130
129
-i " pandas.Timedelta.view SA01" \
131
- -i " pandas.TimedeltaIndex.as_unit RT03,SA01" \
132
130
-i " pandas.TimedeltaIndex.components SA01" \
133
131
-i " pandas.TimedeltaIndex.microseconds SA01" \
134
132
-i " pandas.TimedeltaIndex.nanoseconds SA01" \
Original file line number Diff line number Diff line change @@ -441,13 +441,25 @@ def as_unit(self, unit: str) -> Self:
441
441
"""
442
442
Convert to a dtype with the given unit resolution.
443
443
444
+ This method is for converting the dtype of a ``DatetimeIndex`` or
445
+ ``TimedeltaIndex`` to a new dtype with the given unit
446
+ resolution/precision.
447
+
444
448
Parameters
445
449
----------
446
450
unit : {'s', 'ms', 'us', 'ns'}
447
451
448
452
Returns
449
453
-------
450
454
same type as self
455
+ Converted to the specified unit.
456
+
457
+ See Also
458
+ --------
459
+ Timestamp.as_unit : Convert to the given unit.
460
+ Timedelta.as_unit : Convert to the given unit.
461
+ DatetimeIndex.as_unit : Convert to the given unit.
462
+ TimedeltaIndex.as_unit : Convert to the given unit.
451
463
452
464
Examples
453
465
--------
Original file line number Diff line number Diff line change @@ -1894,6 +1894,7 @@ def to_frame(
1894
1894
Returns
1895
1895
-------
1896
1896
DataFrame
1897
+ DataFrame representation of the MultiIndex, with levels as columns.
1897
1898
1898
1899
See Also
1899
1900
--------
You can’t perform that action at this time.
0 commit comments