Skip to content

Commit 1a1089f

Browse files
committed
update docs
1 parent 50df383 commit 1a1089f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

third_party/bigframes_vendored/pandas/core/generic.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,16 @@ def rolling(
10721072
4 2
10731073
dtype: Int64
10741074
1075+
>>> df = bpd.DataFrame({'A': [0,1,2,3], 'B': [0,2,4,6]})
1076+
>>> df.rolling(window=2, on='A', closed='both').sum()
1077+
A B
1078+
0 0 <NA>
1079+
1 1 2
1080+
2 2 6
1081+
3 3 12
1082+
<BLANKLINE>
1083+
[4 rows x 2 columns]
1084+
10751085
Args:
10761086
window (int):
10771087
Size of the moving window.

third_party/bigframes_vendored/pandas/core/groupby/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def rolling(self, *args, **kwargs):
10361036
to the size of the window.
10371037
10381038
on (str, optional):
1039-
For a DataFrame, a column label or Index level on which to calculate the rolling window,
1039+
For a DataFrame, a column label on which to calculate the rolling window,
10401040
rather than the DataFrame’s index.
10411041
10421042
closed (str, default 'right'):

0 commit comments

Comments
 (0)