pandas-dev / pandas-stubs

Public type stubs for pandas
BSD 3-Clause "New" or "Revised" License
230 stars 123 forks source link

Create overloads for `DataFrame.clip()` #984

Open Dr-Irv opened 1 month ago

Dr-Irv commented 1 month ago

From discussion in #982 . See all comments there.

          It's possible (but not required) that you could also handle this via typing checks by creating overloads that are the acceptable combinations of the arguments `lower`, `upper` and `axis`

_Originally posted by @Dr-Irv in https://github.com/pandas-dev/pandas-stubs/pull/982#discussion_r1725010182_