DEPR: observed=False default in groupby by rhshadrach · Pull Request #51811 · pandas-dev/pandas (original) (raw)

Thanks @topper-123

for users who work interaactively (ipython, jupyter,..), Is there way to avoid the FutureWarning coming repeatedly? It will probably get quite annoying after a while...

Users can specify observed=True|False. Also, just to be sure, this will only warn if one of the groupings is categorical.

I think you're thinking of some global option? I would be -1 on that, and hope this will be rare enough that it won't pester users. They'll need to specify observed=True if they want to adopt future behavior or observed=False if they want to maintain current behavior eventually.