Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions third_party/bigframes_vendored/pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3296,19 +3296,19 @@ def apply(self, func, *, args=(), **kwargs):

>>> df = bpd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
>>> df
col1 col2
0 1 3
1 2 4
col1 col2
0 1 3
1 2 4
<BLANKLINE>
[2 rows x 2 columns]

>>> def sqaure(x):
>>> def square(x):
... return x * x
>>> df1 = df.apply(sqaure)
>>> df

>>> df.apply(square)
col1 col2
0 1 3
1 2 4
0 1 9
1 4 16
<BLANKLINE>
[2 rows x 2 columns]

Expand Down