| 3290 | |
| 3291 | @derived_from(pd.DataFrame) |
| 3292 | def dropna(self, how=no_default, subset=None, thresh=no_default): |
| 3293 | if how is not no_default and thresh is not no_default: |
| 3294 | raise TypeError( |
| 3295 | "You cannot set both the how and thresh arguments at the same time." |
| 3296 | ) |
| 3297 | subset = _convert_to_list(subset) |
| 3298 | return new_collection( |
| 3299 | expr.DropnaFrame(self, how=how, subset=subset, thresh=thresh) |
| 3300 | ) |
| 3301 | |
| 3302 | @classmethod |
| 3303 | def _validate_axis(cls, axis=0, numeric_axis: bool = True) -> None | Literal[0, 1]: |