HNHacker News
TopNewBestAskShowJobs

mutant_self

75 karma · joined December 10, 2021

submissionscomments
mutant_self··on Replacing Pandas with Polars
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

mutant_self··on Modern Polars: A comparison of the Polars and Pandas dataframe libraries
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...
mutant_self··on Modern Polars: A comparison of the Polars and Pandas dataframe libraries
There’s a tidypolars package that appears to be well-maintained https://github.com/markfairbanks/tidypolars
mutant_self··on Modern Polars: A comparison of the Polars and Pandas dataframe libraries
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
mutant_self··on Wormhole confirms all $320M in funds have been restored
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
mutant_self··on In second largest DeFi hack, Blockchain Bridge loses $320M Ether
It's not a DSL in Rust. It's just Rust