|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": 3, |
| 6 | + "id": "98cd0489", |
| 7 | + "metadata": {}, |
| 8 | + "outputs": [ |
| 9 | + { |
| 10 | + "name": "stdout", |
| 11 | + "output_type": "stream", |
| 12 | + "text": [ |
| 13 | + "The bigframes extension is already loaded. To reload it, use:\n", |
| 14 | + " %reload_ext bigframes\n" |
| 15 | + ] |
| 16 | + } |
| 17 | + ], |
| 18 | + "source": [ |
| 19 | + "%load_ext bigframes" |
| 20 | + ] |
| 21 | + }, |
| 22 | + { |
| 23 | + "cell_type": "code", |
| 24 | + "execution_count": 4, |
| 25 | + "id": "269c5862", |
| 26 | + "metadata": {}, |
| 27 | + "outputs": [ |
| 28 | + { |
| 29 | + "data": { |
| 30 | + "text/html": [ |
| 31 | + "\n", |
| 32 | + " Query processed 0 Bytes. [<a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:job_HiiqKoJVBj9_EYqkrjVsmzkVZCb5&page=queryresults\">Job bigframes-dev:US.job_HiiqKoJVBj9_EYqkrjVsmzkVZCb5 details</a>]\n", |
| 33 | + " " |
| 34 | + ], |
| 35 | + "text/plain": [ |
| 36 | + "<IPython.core.display.HTML object>" |
| 37 | + ] |
| 38 | + }, |
| 39 | + "metadata": {}, |
| 40 | + "output_type": "display_data" |
| 41 | + }, |
| 42 | + { |
| 43 | + "data": { |
| 44 | + "application/vnd.jupyter.widget-view+json": { |
| 45 | + "model_id": "c6fbeec6762f4a3fa0c9d3e71ca4c00d", |
| 46 | + "version_major": 2, |
| 47 | + "version_minor": 1 |
| 48 | + }, |
| 49 | + "text/html": [ |
| 50 | + "<div>\n", |
| 51 | + "<style scoped>\n", |
| 52 | + " .dataframe tbody tr th:only-of-type {\n", |
| 53 | + " vertical-align: middle;\n", |
| 54 | + " }\n", |
| 55 | + "\n", |
| 56 | + " .dataframe tbody tr th {\n", |
| 57 | + " vertical-align: top;\n", |
| 58 | + " }\n", |
| 59 | + "\n", |
| 60 | + " .dataframe thead th {\n", |
| 61 | + " text-align: right;\n", |
| 62 | + " }\n", |
| 63 | + "</style>\n", |
| 64 | + "<table border=\"1\" class=\"dataframe\">\n", |
| 65 | + " <thead>\n", |
| 66 | + " <tr style=\"text-align: right;\">\n", |
| 67 | + " <th></th>\n", |
| 68 | + " <th>state</th>\n", |
| 69 | + " <th>gender</th>\n", |
| 70 | + " <th>year</th>\n", |
| 71 | + " <th>name</th>\n", |
| 72 | + " <th>number</th>\n", |
| 73 | + " </tr>\n", |
| 74 | + " </thead>\n", |
| 75 | + " <tbody>\n", |
| 76 | + " <tr>\n", |
| 77 | + " <th>0</th>\n", |
| 78 | + " <td>HI</td>\n", |
| 79 | + " <td>F</td>\n", |
| 80 | + " <td>1999</td>\n", |
| 81 | + " <td>Ariana</td>\n", |
| 82 | + " <td>10</td>\n", |
| 83 | + " </tr>\n", |
| 84 | + " <tr>\n", |
| 85 | + " <th>1</th>\n", |
| 86 | + " <td>HI</td>\n", |
| 87 | + " <td>F</td>\n", |
| 88 | + " <td>2002</td>\n", |
| 89 | + " <td>Jordyn</td>\n", |
| 90 | + " <td>10</td>\n", |
| 91 | + " </tr>\n", |
| 92 | + " <tr>\n", |
| 93 | + " <th>2</th>\n", |
| 94 | + " <td>HI</td>\n", |
| 95 | + " <td>F</td>\n", |
| 96 | + " <td>2006</td>\n", |
| 97 | + " <td>Mya</td>\n", |
| 98 | + " <td>10</td>\n", |
| 99 | + " </tr>\n", |
| 100 | + " <tr>\n", |
| 101 | + " <th>3</th>\n", |
| 102 | + " <td>HI</td>\n", |
| 103 | + " <td>F</td>\n", |
| 104 | + " <td>2010</td>\n", |
| 105 | + " <td>Jordyn</td>\n", |
| 106 | + " <td>10</td>\n", |
| 107 | + " </tr>\n", |
| 108 | + " <tr>\n", |
| 109 | + " <th>4</th>\n", |
| 110 | + " <td>HI</td>\n", |
| 111 | + " <td>M</td>\n", |
| 112 | + " <td>1921</td>\n", |
| 113 | + " <td>Nobuo</td>\n", |
| 114 | + " <td>10</td>\n", |
| 115 | + " </tr>\n", |
| 116 | + " <tr>\n", |
| 117 | + " <th>5</th>\n", |
| 118 | + " <td>HI</td>\n", |
| 119 | + " <td>M</td>\n", |
| 120 | + " <td>1925</td>\n", |
| 121 | + " <td>Ralph</td>\n", |
| 122 | + " <td>10</td>\n", |
| 123 | + " </tr>\n", |
| 124 | + " <tr>\n", |
| 125 | + " <th>6</th>\n", |
| 126 | + " <td>HI</td>\n", |
| 127 | + " <td>M</td>\n", |
| 128 | + " <td>1926</td>\n", |
| 129 | + " <td>Hisao</td>\n", |
| 130 | + " <td>10</td>\n", |
| 131 | + " </tr>\n", |
| 132 | + " <tr>\n", |
| 133 | + " <th>7</th>\n", |
| 134 | + " <td>HI</td>\n", |
| 135 | + " <td>M</td>\n", |
| 136 | + " <td>1927</td>\n", |
| 137 | + " <td>Moses</td>\n", |
| 138 | + " <td>10</td>\n", |
| 139 | + " </tr>\n", |
| 140 | + " <tr>\n", |
| 141 | + " <th>8</th>\n", |
| 142 | + " <td>HI</td>\n", |
| 143 | + " <td>M</td>\n", |
| 144 | + " <td>1933</td>\n", |
| 145 | + " <td>Larry</td>\n", |
| 146 | + " <td>10</td>\n", |
| 147 | + " </tr>\n", |
| 148 | + " <tr>\n", |
| 149 | + " <th>9</th>\n", |
| 150 | + " <td>HI</td>\n", |
| 151 | + " <td>M</td>\n", |
| 152 | + " <td>1933</td>\n", |
| 153 | + " <td>Alfredo</td>\n", |
| 154 | + " <td>10</td>\n", |
| 155 | + " </tr>\n", |
| 156 | + " </tbody>\n", |
| 157 | + "</table>\n", |
| 158 | + "<p>10 rows × 5 columns</p>\n", |
| 159 | + "</div>[5552452 rows x 5 columns in total]" |
| 160 | + ], |
| 161 | + "text/plain": [ |
| 162 | + "state gender year name number\n", |
| 163 | + " HI F 1999 Ariana 10\n", |
| 164 | + " HI F 2002 Jordyn 10\n", |
| 165 | + " HI F 2006 Mya 10\n", |
| 166 | + " HI F 2010 Jordyn 10\n", |
| 167 | + " HI M 1921 Nobuo 10\n", |
| 168 | + " HI M 1925 Ralph 10\n", |
| 169 | + " HI M 1926 Hisao 10\n", |
| 170 | + " HI M 1927 Moses 10\n", |
| 171 | + " HI M 1933 Larry 10\n", |
| 172 | + " HI M 1933 Alfredo 10\n", |
| 173 | + "...\n", |
| 174 | + "\n", |
| 175 | + "[5552452 rows x 5 columns]" |
| 176 | + ] |
| 177 | + }, |
| 178 | + "metadata": {}, |
| 179 | + "output_type": "display_data" |
| 180 | + } |
| 181 | + ], |
| 182 | + "source": [ |
| 183 | + "%%bqsql\n", |
| 184 | + "SELECT * FROM `bigquery-public-data.usa_names.usa_1910_2013`" |
| 185 | + ] |
| 186 | + }, |
| 187 | + { |
| 188 | + "cell_type": "code", |
| 189 | + "execution_count": null, |
| 190 | + "id": "30bb6327", |
| 191 | + "metadata": {}, |
| 192 | + "outputs": [], |
| 193 | + "source": [] |
| 194 | + } |
| 195 | + ], |
| 196 | + "metadata": { |
| 197 | + "kernelspec": { |
| 198 | + "display_name": "venv", |
| 199 | + "language": "python", |
| 200 | + "name": "python3" |
| 201 | + }, |
| 202 | + "language_info": { |
| 203 | + "codemirror_mode": { |
| 204 | + "name": "ipython", |
| 205 | + "version": 3 |
| 206 | + }, |
| 207 | + "file_extension": ".py", |
| 208 | + "mimetype": "text/x-python", |
| 209 | + "name": "python", |
| 210 | + "nbconvert_exporter": "python", |
| 211 | + "pygments_lexer": "ipython3", |
| 212 | + "version": "3.10.18" |
| 213 | + } |
| 214 | + }, |
| 215 | + "nbformat": 4, |
| 216 | + "nbformat_minor": 5 |
| 217 | +} |
0 commit comments