Pre-Release of Polars 2.0

(pola.rs)

122 points | by komape 2 hours ago

3 comments

  • benrutter 1 hour ago
    > We don’t aim to make a big feature release of Polars 2.0. In fact we hope it to be a boring experience for you. The reason we bump this major version is that we can get rid of design decisions made in the past that currently block us and then we want to change defaults to more sensible settings that will benefit a greater audience

    I know this take reveals me as a very dull person, but I love seeing projects take semver seriously like this! Version bumps should really be about removing deprecated cruft rather than shiny new features.

    I've used polars for a while now, and their focus on stability was a big part if convincing me to make the jump initially!

    • nicce 34 minutes ago
      > Version bumps should really be about removing deprecated cruft rather than shiny new features.

      Can there be deprecated cruft without new features? :-D

    • dist-epoch 37 minutes ago
      That being said Polars is one of the few Python libraries from the hundreds I use that I need to read the notes of every minor release (eg 1.44 -> 1.45), because they tend to frequently deprecate, remove or change features.
    • Bluestein 1 hour ago
      "Tranquil development" (vs. "hype-driven shipping") :)
  • bobson_dugnutt5 54 minutes ago
    I love polars. Did a lot of evangelizing in work to get people to give up pandas in favor of it.
    • anotherpaul 42 minutes ago
      I gave up pandas in favor of polars after someone at work did the same and I am very happy with it. Pandas API is just so much worse and much slower.
    • mgaunard 43 minutes ago
      Both have terrible syntax that make SQL look like the most readable thing ever.
      • aquafox 29 minutes ago
        Coming from an R/dplyr background, I agree. Compare

        df.select(

          pl.col("x"),
          (pl.col("w")/pl.col("z")).alias("y")
        
        )

        with

        df |> select(x, y = w/z)

        • bobson_dugnutt5 25 minutes ago
          Fair point, but you can do something like

          `df.select("x", y=pl.col.w/pl.col.z)`

      • condwanaland 27 minutes ago
        Could not agree less. Ive always found SQL an unreadable mess but tools like polars and dplyr are such elegant ways to manipulate data.

        Pandas is a mess though.

      • bobson_dugnutt5 24 minutes ago
        What is it about polars syntax you don't like? The fact that is very verbose? At first I wasn't a fan, but over time I've grown to really like it. That never happened to me with pandas, always felt the syntax was messy
      • fzumstein 38 minutes ago
        I tend to agree. SQL may have been harder to write in the past (worse autocomplete than pandas/polars), but now that AI is writing the code, SQL is usually much easier to read. So DuckDB is another interesting alternative to pandas.
        • refactor_master 12 minutes ago
          The cool thing about polars is that you can conditionally collect expressions over many layers of business logic, and then compute the result at the end. Doing this in SQL ends up in a hodgepodge of strings and trimmed ends to please the syntax. You can also pretty effortlessly write quite complex conditionals directly in polars, and bridge it easily to the surrounding python.

          I find that SQL is only easier to read with minimal abstraction, but as soon as the project gets bigger SQL becomes an unwieldy island of different that has served its purpose after we’re done with reading/writing the data.

  • rfgplk 1 hour ago
    Seeing "release will land in the following weeks" kind of immediately turns me off.
    • thibaut_barrere 48 minutes ago
      I like when large projects do that. This gives leeway for sister projects (eg wrappers) to anticipate, room for apps that use it intensively to test things out (release candidate etc), something which has really helped me in the past.

      In that specific case I use a Polars wrapper in Elixir (called Explorer) all week long, and I am very happy they are giving us early hints.

    • marliechiller 48 minutes ago
      What is your understanding of a Pre-Release then?
    • dbdr 55 minutes ago
      Why?
      • irpap 46 minutes ago
        I assume because “land” is a word Claude would choose.
        • tancop 2 minutes ago
          It's the only good word here. "Drop" can also mean the opposite and anything else sounds too formal. Don't get me started on "release will release".
        • mgaunard 41 minutes ago
          Claude's wording (and knowledge) is based on what competent senior engineers would say.
          • tecleandor 21 minutes ago
            None of the competent senior engineers I know say "not this, but that" every two sentences.