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

Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@
"source": [
"Running the cell below creates a custom function using the `remote_function` method. This function categorizes a value into one of two buckets: >= 4000 or <4000.\n",
"\n",
"> Note: Creating a function requires a [BigQuery connection](https://cloud.google.com/bigquery/docs/remote-functions#create_a_remote_function). This code assumes a pre-created connection named `bigframes-rf-conn`. If\n",
"> Note: Creating a function requires a [BigQuery connection](https://cloud.google.com/bigquery/docs/remote-functions#create_a_remote_function). This code assumes a pre-created connection named `bigframes-default-connection`. If\n",
"the connection is not already created, BigQuery DataFrames attempts to create one assuming the [necessary APIs\n",
"and IAM permissions](https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.pandas#bigframes_pandas_remote_function) are set up in the project.\n",
"\n",
Expand All @@ -817,7 +817,7 @@
},
"outputs": [],
"source": [
"@bf.remote_function([float], str, bigquery_connection='bigframes-rf-conn')\n",
"@bf.remote_function([float], str)\n",
"def get_bucket(num):\n",
" if not num: return \"NA\"\n",
" boundary = 4000\n",
Expand Down
Loading