Deploy and apply a remote function using BigQuery DataFrames
Stay organized with collections
Save and categorize content based on your preferences.
Use the BigQuery DataFrames API to deploy a Python function as a Cloud Function and use it as a remote function.
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eThe BigQuery DataFrames API allows for the deployment of custom Python functions as Cloud Functions, enabling their use as remote functions within BigQuery.\u003c/p\u003e\n"],["\u003cp\u003eA custom scalar function can be applied to every value in a \u003ccode\u003eSeries\u003c/code\u003e using the \u003ccode\u003eapply\u003c/code\u003e API, such as bucketizing numeric data into categorical strings.\u003c/p\u003e\n"],["\u003cp\u003eRemote functions can be created with external package dependencies, as demonstrated by a hashing function that relies on the \u003ccode\u003ecryptography\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eBigQuery DataFrames provides the ability to create a BigQuery remote function, which is discoverable via a property on the remote function object, in addition to a cloud function.\u003c/p\u003e\n"],["\u003cp\u003eUser code deployed as a cloud function may be visible to others, and therefore sensitive data in the code should be handled with caution.\u003c/p\u003e\n"]]],[],null,[]]