Better HN
topnewbestaskshowjobs
Log inSign up

mutant_self

75 karma · joined Dec 10, 2021 (4y ago) · 9 submissions

Submissions

comment 3y ago · link · parent

I would do the Pandas and Polars examples differently:

``` pd_df['date'].value_counts() # pandas pl_df.select(pl.col('date').value_counts()) # polars ```

Note: we could also do it the Pandas way in Polars but square bracket indexing in Polars is not recommended

comment 3y ago · link · parent

Here's an example of idiomatic Pandas taking 10 minutes while Polars takes 7 seconds: https://www.pola.rs/posts/the-expressions-api-in-polars-is-a...

comment 3y ago · link · parent

There’s a tidypolars package that appears to be well-maintained https://github.com/markfairbanks/tidypolars

comment 3y ago · link · parent

Author here: you are correct but the EPUB and PDF stuff actually didn’t work for this (it exited while rendering). iirc one of the problems was Quarto didn’t know how to format Polars dataframes

5.

Modern Polars: A comparison of the Polars and Pandas dataframe libraries(kevinheavey.github.io ↗)

132 points · by mutant_self · 3y ago · 62 comments

comment 4y ago · link · parent

I think you've gotten confused. Jump did have to fork over $320m worth of tokens to fill the hole from the hack. There's no weird accounting trick here

comment 4y ago · link · parent

It's not a DSL in Rust. It's just Rust

8.

PyHeck: A fast Python case conversion library in just 106 lines of Rust code(old.reddit.com ↗)

1 points · by mutant_self · 4y ago · discuss