CLN: Replace bare exceptions with more descriptive ones · Issue #3954 · pandas-dev/pandas (original) (raw)

I'm moving this to an issue so it's easier to track and I can split into separate, smaller, pull requests. (previously was #3924).

For right now, the goal is to take care of the low-hanging fruit (the really obvious items that should be TypeError, ValueError, etc.) and then potentially take on more of the code base later.

Packages/Files where exceptions have been changed (will be checked off once test cases are edited for them)

More to come...