Riinu Pius @pius.cloud ยท Dec 1

It's most wonderful time of the year - #AdventOfCode Day 01๐ŸŽ„ Having abandoned #pydata in favour of #rstats 13 years ago, I am keen to give our relationship another go. Especially as I left pre-pandas ๐Ÿผ Will revert to R as soon as the going gets tough. Probably in a day or two ๐Ÿ˜…

11 likes 2 replies

?

Replies

David McCormick ยท Dec 1

Use Polars or DuckDB, not Pandas. Lazy evaluation and column organized data rules.

Brent Crossman ยท Dec 1

What's funny is initially thought my answer to part2 would be figuring out the "# of crosses" and adding it to the "landed on" and I really should have kept it that way because all my edge cases surrounded the "touches 0". Seeing yours I immediately kicked myself for not sticking to that plan.