News for hackers. Stuff that matters.

mutant_self

Re:Replacing Pandas with Polars. A Practical Guide on Sunday January 22, 2023 @09:14AM (#34477582)
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

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...
There’s a tidypolars package that appears to be well-maintained https://github.com/markfairbanks/tidypolars
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
Re:Wormhole confirms all $320M in funds have been restored on Thursday February 03, 2022 @03:56PM (#30198706)
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
It's not a DSL in Rust. It's just Rust