API: Add various deprecated attributes to ._deprecated by topper-123 · Pull Request #28805 · pandas-dev/pandas (original) (raw)

Yeah, I thought about it, but can't think of a method that doesn't parse all the source files, which would be inefficient. Maybe add a deprecated decorator, where instead of manually adding to _deprecations, we'd do:

class AClass: @deprecated(hide=True) def (self, ...): ...

But I'm however not personally particularly interested in implementing this, and it should probably be something that is implemented as an independent project outside of pandas anyway...