This repository was archived by the owner on May 7, 2026. It is now read-only.
Commit c9ca02c
authored
feat: add DataFrame.resample and Series.resample (#2213)
* feat: add DataFrame.resample and Series.resample
* raise for unsupported values
* add docstrings
* fix dataframe tests1 parent 0a3e172 commit c9ca02cCopy full SHA for c9ca02c
10 files changed
+288-123Lines changed: 288 additions & 123 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- bigframes
- core
- tests
- system/small
- unit
- third_party/bigframes_vendored/pandas/core
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1996 | 1996 | |
1997 | 1997 | |
1998 | 1998 | |
| 1999 | + |
| 2000 | + |
| 2001 | + |
| 2002 | + |
| 2003 | + |
| 2004 | + |
| 2005 | + |
| 2006 | + |
| 2007 | + |
| 2008 | + |
| 2009 | + |
| 2010 | + |
| 2011 | + |
| 2012 | + |
| 2013 | + |
| 2014 | + |
| 2015 | + |
| 2016 | + |
| 2017 | + |
| 2018 | + |
| 2019 | + |
| 2020 | + |
| 2021 | + |
| 2022 | + |
| 2023 | + |
1999 | 2024 | |
2000 | 2025 | |
2001 | 2026 | |
|
Collapse file
+5-57Lines changed: 5 additions & 57 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4182 | 4182 | |
4183 | 4183 | |
4184 | 4184 | |
4185 | | - |
| 4185 | + |
4186 | 4186 | |
4187 | 4187 | |
4188 | 4188 | |
| 4189 | + |
| 4190 | + |
4189 | 4191 | |
4190 | 4192 | |
4191 | 4193 | |
| ||
4195 | 4197 | |
4196 | 4198 | |
4197 | 4199 | |
4198 | | - |
4199 | | - |
4200 | | - |
4201 | | - |
4202 | | - |
4203 | | - |
4204 | | - |
4205 | | - |
4206 | | - |
4207 | | - |
4208 | | - |
4209 | | - |
4210 | | - |
4211 | | - |
4212 | | - |
4213 | | - |
4214 | | - |
4215 | | - |
4216 | | - |
4217 | | - |
4218 | | - |
4219 | | - |
4220 | | - |
4221 | | - |
4222 | | - |
4223 | | - |
4224 | | - |
4225 | | - |
4226 | | - |
4227 | | - |
4228 | | - |
4229 | | - |
4230 | | - |
4231 | | - |
4232 | | - |
4233 | | - |
4234 | | - |
4235 | | - |
4236 | | - |
4237 | | - |
4238 | | - |
4239 | | - |
4240 | | - |
4241 | | - |
4242 | | - |
4243 | | - |
4244 | | - |
4245 | | - |
4246 | | - |
4247 | | - |
4248 | | - |
4249 | | - |
4250 | | - |
4251 | | - |
4252 | | - |
4253 | | - |
4254 | 4200 | |
4255 | 4201 | |
| 4202 | + |
| 4203 | + |
4256 | 4204 | |
4257 | 4205 | |
4258 | 4206 | |
|
Collapse file
+1-38Lines changed: 1 addition & 38 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2505 | 2505 | |
2506 | 2506 | |
2507 | 2507 | |
2508 | | - |
| 2508 | + |
2509 | 2509 | |
2510 | 2510 | |
2511 | 2511 | |
| ||
2519 | 2519 | |
2520 | 2520 | |
2521 | 2521 | |
2522 | | - |
2523 | | - |
2524 | | - |
2525 | | - |
2526 | | - |
2527 | | - |
2528 | | - |
2529 | | - |
2530 | | - |
2531 | | - |
2532 | | - |
2533 | | - |
2534 | | - |
2535 | | - |
2536 | | - |
2537 | | - |
2538 | | - |
2539 | | - |
2540 | | - |
2541 | | - |
2542 | | - |
2543 | | - |
2544 | | - |
2545 | | - |
2546 | | - |
2547 | | - |
2548 | | - |
2549 | | - |
2550 | | - |
2551 | | - |
2552 | | - |
2553 | | - |
2554 | | - |
2555 | | - |
2556 | | - |
2557 | | - |
2558 | | - |
2559 | 2522 | |
2560 | 2523 | |
2561 | 2524 | |
|
Collapse file
tests/system/small/test_dataframe.py
Copy file name to clipboardExpand all lines: tests/system/small/test_dataframe.py+38-20Lines changed: 38 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5915 | 5915 | |
5916 | 5916 | |
5917 | 5917 | |
5918 | | - |
5919 | | - |
5920 | | - |
5921 | | - |
5922 | | - |
5923 | | - |
5924 | 5918 | |
5925 | 5919 | |
5926 | | - |
| 5920 | + |
5927 | 5921 | |
5928 | 5922 | |
5929 | 5923 | |
5930 | 5924 | |
5931 | 5925 | |
5932 | | - |
| 5926 | + |
5933 | 5927 | |
5934 | 5928 | |
5935 | 5929 | |
| ||
5943 | 5937 | |
5944 | 5938 | |
5945 | 5939 | |
| 5940 | + |
| 5941 | + |
| 5942 | + |
| 5943 | + |
| 5944 | + |
5946 | 5945 | |
5947 | | - |
| 5946 | + |
5948 | 5947 | |
5949 | | - |
5950 | | - |
5951 | | - |
| 5948 | + |
| 5949 | + |
| 5950 | + |
| 5951 | + |
5952 | 5952 | |
5953 | 5953 | |
5954 | | - |
5955 | | - |
| 5954 | + |
| 5955 | + |
| 5956 | + |
| 5957 | + |
| 5958 | + |
| 5959 | + |
| 5960 | + |
| 5961 | + |
| 5962 | + |
| 5963 | + |
| 5964 | + |
| 5965 | + |
| 5966 | + |
| 5967 | + |
| 5968 | + |
| 5969 | + |
| 5970 | + |
| 5971 | + |
5956 | 5972 | |
5957 | 5973 | |
5958 | 5974 | |
5959 | | - |
5960 | | - |
| 5975 | + |
| 5976 | + |
| 5977 | + |
| 5978 | + |
5961 | 5979 | |
5962 | 5980 | |
5963 | | - |
| 5981 | + |
5964 | 5982 | |
5965 | 5983 | |
5966 | 5984 | |
5967 | 5985 | |
5968 | 5986 | |
5969 | | - |
| 5987 | + |
5970 | 5988 | |
5971 | 5989 | |
5972 | 5990 | |
| ||
6010 | 6028 | |
6011 | 6029 | |
6012 | 6030 | |
6013 | | - |
| 6031 | + |
6014 | 6032 | |
6015 | 6033 | |
6016 | 6034 | |
6017 | 6035 | |
6018 | 6036 | |
6019 | 6037 | |
6020 | 6038 | |
6021 | | - |
| 6039 | + |
6022 | 6040 | |
6023 | 6041 | |
6024 | 6042 | |
|
Collapse file
tests/system/small/test_series.py
Copy file name to clipboardExpand all lines: tests/system/small/test_series.py+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4856 | 4856 | |
4857 | 4857 | |
4858 | 4858 | |
4859 | | - |
| 4859 | + |
4860 | 4860 | |
4861 | 4861 | |
4862 | 4862 | |
4863 | 4863 | |
4864 | 4864 | |
4865 | 4865 | |
4866 | | - |
| 4866 | + |
4867 | 4867 | |
4868 | 4868 | |
4869 | 4869 | |
|
Collapse file
tests/system/small/test_unordered.py
Copy file name to clipboardExpand all lines: tests/system/small/test_unordered.py+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
248 | 248 | |
249 | 249 | |
250 | 250 | |
251 | | - |
| 251 | + |
252 | 252 | |
253 | 253 | |
254 | 254 | |
255 | 255 | |
256 | 256 | |
257 | 257 | |
258 | 258 | |
259 | | - |
260 | | - |
| 259 | + |
261 | 260 | |
262 | 261 | |
| 262 | + |
| 263 | + |
263 | 264 | |
264 | | - |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
265 | 269 | |
266 | 270 | |
267 | 271 | |
|
Collapse file
tests/unit/test_dataframe.py
Copy file name to clipboardExpand all lines: tests/unit/test_dataframe.py+62Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 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 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
45 | 107 | |
46 | 108 | |
47 | 109 | |
|
0 commit comments