| 3260 | |
| 3261 | @derived_from(pd.DataFrame) |
| 3262 | def dropna(self, how=no_default, subset=None, thresh=no_default): |
| 3263 | if how is not no_default and thresh is not no_default: |
| 3264 | raise TypeError( |
| 3265 | "You cannot set both the how and thresh arguments at the same time." |
| 3266 | ) |
| 3267 | subset = _convert_to_list(subset) |
| 3268 | return new_collection( |
| 3269 | expr.DropnaFrame(self, how=how, subset=subset, thresh=thresh) |
| 3270 | ) |
| 3271 | |
| 3272 | @classmethod |
| 3273 | def _validate_axis(cls, axis=0, numeric_axis: bool = True) -> None | Literal[0, 1]: |