devin-petersohn opened a new pull request, #54659: URL: https://github.com/apache/spark/pull/54659
### What changes were proposed in this pull request? Add the `errors` parameter to `DataFrame.drop` and `Series.drop` to match pandas API. When `errors='raise'` (default), a `KeyError` is raised if any requested label is not found. When `errors='ignore'`, missing labels are silently skipped. ### Why are the changes needed? pandas API parity. Users migrating from pandas expect the `errors` parameter to be available. ### Does this PR introduce _any_ user-facing change? Yes, new `errors` parameter on `DataFrame.drop` and `Series.drop`. ### How was this patch tested? CI ### Was this patch authored or co-authored using generative AI tooling? Co-authored-by: Claude Opus 4 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
