Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
improved docstring with concurrency-safe code samples
  • Loading branch information
shobsi committed Nov 8, 2023
commit 7e14da38d2ecf01b7d0a19939e623b9bc5244661
7 changes: 6 additions & 1 deletion third_party/bigframes_vendored/pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,12 @@ def map(self, func, na_action: Optional[str] = None) -> DataFrame:
>>> import bigframes.pandas as bpd
>>> bpd.options.display.progress_bar = None

>>> @bpd.remote_function([int], float)
Let's use ``reuse=False`` flag to make sure a new ``remote_function``
Comment thread
shobsi marked this conversation as resolved.
Outdated
is created every time we run the following code, but you can skip it
to potentially reuse a previously deployed ``remote_function`` from
the same user defined function.

>>> @bpd.remote_function([int], float, reuse=False)
... def minutes_to_hours(x):
... return x/60

Expand Down
8 changes: 6 additions & 2 deletions third_party/bigframes_vendored/pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,12 @@ def apply(
>>> import bigframes.pandas as bpd
>>> bpd.options.display.progress_bar = None

>>> @bpd.remote_function([int], float)
Let's use ``reuse=False`` flag to make sure a new ``remote_function``
is created every time we run the following code, but you can skip it
to potentially reuse a previously deployed ``remote_function`` from
the same user defined function.

>>> @bpd.remote_function([int], float, reuse=False)
... def minutes_to_hours(x):
... return x/60

Expand Down Expand Up @@ -764,7 +769,6 @@ def apply(
>>> @bpd.remote_function(
... [str],
... str,
... bigquery_connection="bigframes-rf-conn",
... reuse=False,
... packages=["cryptography"],
... )
Expand Down