Manipulate your data with ease.
Master predictable patterns to clean, visualize, prepare, pivot, summarize, and predict data. Write code that is easy to use, debug, return to a week later, and put into production. Stop worrying about whether you can use your Jupyter Notebook when you return tomorrow.
Learn how to load, clean, and prepare data quickly and reliably. Think of data processing like a "recipe."
Learn how to wield Polars for great good. Create win-win situations for you and your future data collaborators!
Great book!
I really enjoyed it and I think it's an excellent introduction for folks coming from the pandas world. My favorite part is the refactoring example at the end.
I've had discussions about polars being a maintenance burden because it's the new kid on the block but your example demonstrates how much nicer reading and maintaining polars code can be because of its explicitness and well-designed API.
I like the use of "real-world" data to demo the operations you'd use on a regular.
"Came for the speed, stayed for the syntax."
That's a common refrain among Polars enthusiasts. And indeed, the Polars API is truly beautiful: not only does it make for very readable code, it also allows you to express complex aggregations which just aren't expressible with the pandas API.
Matt Harrison is a world-renowned pandas expert. I'm a Pandas maintainer. Yet we've both dedicated considerable time to Polars over the past year - not because we want to "kill Pandas" or anything like that, but because we're so excited about the ground-breaking library that Polars is. It's refreshing to see a project have the courage to do things differently and produce such an incredible result - its growing popularity is well-deserved!
When should you use Polars? I think the best time is when you're starting a new project. Porting Pandas code to Polars is certainly possible, as Matt shows here, but it's not necessarily easy. If you try thinking in Polars at the start of a new project, you'll likely surprise yourself with how expressive its API truly is, you'll use it idiomatically, and you'll make full use of its amazing features.
Marco Gorelli
Code and diagrams
Coming Soon
Coming soon