Comments (5)
Wouldn't this error be related to the new null_on_oob
parameter in pl.Expr.list.get
?
from polars.
I don't think that null
values should raise on oob even when the parameter is True. If it did, the parameter would only be useful when dealing with series without nulls, otherwise it must be set to False. If not, all calls will fail as long as a single null value is present.
from polars.
Also, note that this is not the case for arrays:
s = pl.Series([None, [1]], dtype=pl.Array(pl.Int32, 1))
s.arr.get(0, null_on_oob=False) # returns [null, 1]
s.arr.get(0, null_on_oob=True) # returns [null, 1]
from polars.
Thanks for the report. This is most probably a side-effect of #16841
from polars.
Re-opening as this wasn't fixed completely - see #17276
from polars.
Related Issues (20)
- Optimize `is_null().any()` and similar operations that can be written in terms of null count HOT 4
- Create index data structure explicitly HOT 2
- Support for pipes in read_csv
- SchemaError: failed to determine supertype of enum and u32 HOT 2
- write_parquet(..., pyarrow_options={'partition_cols': [..., ]}) munges partition column HOT 5
- Specifying NumPy dtype in to_numpy method HOT 3
- `write_excel` treats all numeric data as 'Currency' format HOT 4
- Hugging Face support
- Async glob does not expand brackets `[`
- Create named columns from DataFrame with a data structure as argument HOT 2
- Using `scan_csv(..., with_column_names=...)` does not defer path expansion to `collect`
- Description of sort method is ambiguous
- Performance: Calculation 200x+ slower without rechunking or sorting first HOT 4
- replace / replace_strict is slow for large mapping HOT 2
- `list.mean` converts `duration` to float
- Show return type for Series attributes in API reference
- Performance of `cast(Categorical)` with `rechunk=False` HOT 2
- Systematic test for all `rechunk=False` regressions HOT 2
- Plotting with different backend than bokeh HOT 3
- Calling `explode()` on multiple columns of a dataframe slice throws an error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polars.