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