@@ -6888,30 +6888,32 @@ def tshift(self, periods=1, freq=None, axis=0):
68886888
68896889 def truncate (self , before = None , after = None , axis = None , copy = True ):
68906890 """
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,
68936894 before/after parameters are converted to datetime values.
68946895
68956896 Parameters
68966897 ----------
68976898 before : date, string, int
6898- Truncate all rows before this index value
6899+ Truncate all rows before this index value.
68996900 after : date, string, int
6900- Truncate all rows after this index value
6901+ Truncate all rows after this index value.
69016902 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-
69066903 Default is stat axis for given data type (0 for Series and
6907- DataFrames, 1 for Panels)
6904+ DataFrames, 1 for Panels).
69086905 copy : boolean, default is True,
6909- return a copy of the truncated section
6906+ Return a copy of the truncated section.
69106907
69116908 Returns
69126909 -------
69136910 truncated : type of caller
69146911
6912+ See Also
6913+ --------
6914+ DataFrame.truncate : Truncate a DataFrame before/after some index value.
6915+ Series.truncate : Truncate a Series before/after some index value.
6916+
69156917 Examples
69166918 --------
69176919 >>> df = pd.DataFrame({'A': ['a', 'b', 'c', 'd', 'e'],
0 commit comments