This repository was archived by the owner on May 7, 2026. It is now read-only.
Commit 1126cec
feat: add
Adds the `.bigquery.ai.forecast()` method to pandas DataFrame objects,
which proxies to `bigframes.bigquery.ai.forecast()`. Added unit tests
and mocked session responses.
---
*PR created automatically by Jules for task
[14604090974587392182](https://jules.google.com/task/14604090974587392182)
started by @tswast*
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: tswast <247555+tswast@users.noreply.github.com>df.bigquery.ai.forecast method to pandas dataframe accessor (#2518)1 parent edceb35 commit 1126cecCopy full SHA for 1126cec
3 files changed
+137-1Lines changed: 137 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- bigframes
- bigquery/_operations
- extensions/pandas
- tests/unit/core/compile/sqlglot
Expand file treeCollapse file tree
Open diff view settings
Collapse file
bigframes/bigquery/_operations/ai.py
Copy file name to clipboardExpand all lines: bigframes/bigquery/_operations/ai.py+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
880 | 880 | |
881 | 881 | |
882 | 882 | |
| 883 | + |
883 | 884 | |
884 | 885 | |
885 | 886 | |
| ||
914 | 915 | |
915 | 916 | |
916 | 917 | |
| 918 | + |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
917 | 927 | |
918 | 928 | |
919 | 929 | |
| ||
945 | 955 | |
946 | 956 | |
947 | 957 | |
| 958 | + |
948 | 959 | |
949 | 960 | |
950 | 961 | |
|
Collapse file
bigframes/extensions/pandas/dataframe_accessor.py
Copy file name to clipboardExpand all lines: bigframes/extensions/pandas/dataframe_accessor.py+87-1Lines changed: 87 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
16 | 16 | |
17 | 17 | |
18 | 18 | |
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
24 | 103 | |
25 | 104 | |
26 | 105 | |
| ||
32 | 111 | |
33 | 112 | |
34 | 113 | |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
35 | 121 | |
36 | 122 | |
37 | 123 | |
|
Collapse file
tests/unit/core/compile/sqlglot/test_dataframe_accessor.py
Copy file name to clipboardExpand all lines: tests/unit/core/compile/sqlglot/test_dataframe_accessor.py+39Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
0 commit comments