Skip to content

Commit 1a5c3cc

Browse files
pep8
1 parent eaaa162 commit 1a5c3cc

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

pandas/core/window.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def max(self, *args, **kwargs):
910910
return self._apply('roll_max', 'max', **kwargs)
911911

912912
_shared_docs['min'] = dedent("""
913-
Calculate the %(name)s minimum.
913+
Calculate the %(name)s minimum.
914914
915915
Parameters
916916
----------
@@ -922,7 +922,7 @@ def max(self, *args, **kwargs):
922922
Series or DataFrame
923923
Returned object type is determined by the caller of the %(name)s
924924
calculation.
925-
925+
926926
See Also
927927
--------
928928
Series.%(name)s : Calling object with a Series
@@ -932,17 +932,9 @@ def max(self, *args, **kwargs):
932932
933933
Examples
934934
--------
935-
The below example will show a rolling calculation
936-
with a window size of 3.
935+
Performing a rolling minimum with a window size of 3.
937936
938-
>>> s = pd.Series([4,3,5,2,6])
939-
>>> s
940-
0 4
941-
1 3
942-
2 5
943-
3 2
944-
4 6
945-
dtype: int64
937+
>>> s = pd.Series([4, 3, 5, 2, 6])
946938
>>> s.rolling(3).min()
947939
0 NaN
948940
1 NaN
@@ -951,7 +943,7 @@ def max(self, *args, **kwargs):
951943
4 2.0
952944
dtype: float64
953945
""")
954-
946+
955947
def min(self, *args, **kwargs):
956948
nv.validate_window_func('min', args, kwargs)
957949
return self._apply('roll_min', 'min', **kwargs)

0 commit comments

Comments
 (0)