Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(python): Document dropping non-existent column causes Exception now in v1 upgrade guide #18046

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/releases/upgrade/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,12 @@ After:
pip install 'polars[calamine,async,graph]'
```

### `df.drop('non_existent_column')` now raises a `ColumnNotFoundError`

Previously, dropping a non-existent column would silently ignore the non-existent column. Now, an error is raised.
DeflateAwning marked this conversation as resolved.
Show resolved Hide resolved

To restore the old behavior (ignore non-existent columns), pass `strict=False`.

## Deprecations

### Issue `PerformanceWarning` when LazyFrame properties `schema/dtypes/columns/width` are used
Expand Down