Giter Site home page Giter Site logo

Comments (5)

lscheilling avatar lscheilling commented on July 16, 2024

Wouldn't this error be related to the new null_on_oob parameter in pl.Expr.list.get?

Source Code

from polars.

mcrumiller avatar mcrumiller commented on July 16, 2024

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.

mcrumiller avatar mcrumiller commented on July 16, 2024

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.

stinodego avatar stinodego commented on July 16, 2024

Thanks for the report. This is most probably a side-effect of #16841

from polars.

stinodego avatar stinodego commented on July 16, 2024

Re-opening as this wasn't fixed completely - see #17276

from polars.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.