@@ -6888,29 +6888,33 @@ def tshift(self, periods=1, freq=None, axis=0):
6888
6888
6889
6889
def truncate (self , before = None , after = None , axis = None , copy = True ):
6890
6890
"""
6891
- Truncates a sorted DataFrame/Series before and/or after some
6892
- particular index value. If the axis contains only datetime values,
6891
+ Truncate a DataFrame/Series before/after some index value.
6892
+
6893
+ If the axis contains only datetime values,
6893
6894
before/after parameters are converted to datetime values.
6894
6895
6895
6896
Parameters
6896
6897
----------
6897
6898
before : date, string, int
6898
- Truncate all rows before this index value
6899
+ Truncate all rows before this index value.
6899
6900
after : date, string, int
6900
- Truncate all rows after this index value
6901
+ Truncate all rows after this index value.
6901
6902
axis : {0 or 'index', 1 or 'columns'}
6902
-
6903
- * 0 or 'index': apply truncation to rows
6904
- * 1 or 'columns': apply truncation to columns
6905
-
6906
6903
Default is stat axis for given data type (0 for Series and
6907
- DataFrames, 1 for Panels)
6904
+ DataFrames, 1 for Panels).
6908
6905
copy : boolean, default is True,
6909
- return a copy of the truncated section
6906
+ Return a copy of the truncated section.
6910
6907
6911
6908
Returns
6912
6909
-------
6913
- truncated : type of caller
6910
+ type of caller
6911
+ The truncated DataFrame/Series.
6912
+
6913
+ See Also
6914
+ --------
6915
+ DataFrame.truncate : Truncate a DataFrame before/after some index
6916
+ value.
6917
+ Series.truncate : Truncate a Series before/after some index value.
6914
6918
6915
6919
Examples
6916
6920
--------
0 commit comments