{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "acd53f9d", "metadata": {}, "outputs": [], "source": [ "# Copyright 2025 Google LLC\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", "# You may obtain a copy of the License at\n", "#\n", "# https://www.apache.org/licenses/LICENSE-2.0\n", "#\n", "# Unless required by applicable law or agreed to in writing, software\n", "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", "# See the License for the specific language governing permissions and\n", "# limitations under the License." ] }, { "cell_type": "markdown", "id": "e75ce682", "metadata": {}, "source": [ "# BigQuery DataFrames (BigFrames) AI Functions\n", "\n", "
\n",
" \n",
" Run in Colab\n",
" \n",
" | \n",
" \n",
" \n",
" \n",
" View on GitHub\n",
" \n",
" | \n",
" \n",
" \n",
" | \n",
"
| \n", " | creature | \n", "category | \n", "
|---|---|---|
| 0 | \n", "Cat | \n", "mammal | \n", "
| 1 | \n", "Salmon | \n", "fish | \n", "
2 rows × 2 columns
\n", "| \n", " | animals | \n", "relative_weight | \n", "
|---|---|---|
| 1 | \n", "spider | \n", "1.0 | \n", "
| 0 | \n", "tiger | \n", "8.0 | \n", "
| 2 | \n", "blue whale | \n", "10.0 | \n", "
3 rows × 2 columns
\n", "| \n", " | animal | \n", "category | \n", "
|---|---|---|
| 0 | \n", "tiger | \n", "mammal | \n", "
| 1 | \n", "spider | \n", "anthropod | \n", "
| 2 | \n", "blue whale | \n", "mammal | \n", "
| 3 | \n", "salmon | \n", "fish | \n", "
4 rows × 2 columns
\n", "| \n", " | animal | \n", "category | \n", "
|---|---|---|
| 0 | \n", "tiger | \n", "mammal | \n", "
| 1 | \n", "spider | \n", "mammal | \n", "
2 rows × 2 columns
\n", "