Commit 8c7ef13
Fix pandas 3.0 compatibility for groupby aggregation
Change observed=False to observed=True in _group_by_intervals() to fix
test failures on Python 3.11/3.12 with pandas 3.0. The new pandas version
returns all category combinations (including empty ones) when observed=False,
causing aggregation to return hundreds of rows instead of the expected grouped
results.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 57edb3a commit 8c7ef13
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
0 commit comments