Commit d975511
Fix pandas FutureWarning in Data.deduplicate for groupby operations (#5069)
Summary:
Pull Request resolved: #5069
Fixes a pandas FutureWarning that appears when using `DataFrameGroupBy.apply` on grouping columns by changing to `SeriesGroupBy.apply`. The fix adds `[MAP_KEY]` selector before `.apply()` at line 360 in `ax/core/data.py`, which operates on the series rather than the entire grouped DataFrame. This eliminates the deprecation warning on pandas >= 2.1 while maintaining backward compatibility with older pandas versions.
--
Reviewed + modified AI generated Summary & Test Plan from DEV115723120
Reviewed By: saitcakmak
Differential Revision: D970204361 parent 04c9aba commit d975511
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
0 commit comments