I've moved from python/polars/pandas to DuckDB and have not looked back
Python Polars Cheatsheet (based on our O'Reilly book)
21–30 of 44 posts
Re: Python Polars Cheatsheet (based on our O'Reilly book)
#22Despite writing most of my procedural code in Python, I've always preferred doing my data analysis in R. For all of R's warts, the ergonomics of the dplyr + ggplot + the rest of the tidyverse are very tough to beat. My few attempts to use Pandas and matplotlib/seaborne have always proved frustrating. Based on this cheatsheet though, it seems like Polars addresses some of the friction of Pandas. Looking forward to try…
Re: Python Polars Cheatsheet (based on our O'Reilly book)
#23pl.col("...")
Re: Python Polars Cheatsheet (based on our O'Reilly book)
#24Re: Python Polars Cheatsheet (based on our O'Reilly book)
#25I'm sure Polars is great, but I can't get over needing 10 characters of ceremony every time I want to refer to a column in a data frame. pl.col("...")
Re: Python Polars Cheatsheet (based on our O'Reilly book)
#26Re: Python Polars Cheatsheet (based on our O'Reilly book)
#27I get that the data science world has moved on to python, but I always felt that R's data.table had the slickest dataframe developer experience. I have toyed with Polars for a few hours, maybe I should give it a better chance.
I first learned about R at a python user group meeting. It was when Pandas was new, and we were having a bunch of talks about it. Wes McKinney even came to give one before going to Pycon. Anyway, the general consensus at the time was that R was much nicer once you had your data, and if all you had to do was transform it. But that everything else was better in Python. One of our group members did an experimental proje…
Re: Python Polars Cheatsheet (based on our O'Reilly book)
#28I'm sure Polars is great, but I can't get over needing 10 characters of ceremony every time I want to refer to a column in a data frame. pl.col("...")
import polars as pl
from polars import col, litRe: Python Polars Cheatsheet (based on our O'Reilly book)
#29Earlier quoted context omitted.
The bare R experience is not that great, to put it mildly, but it's a whole other story if you add tidyverse on top of it. The data work becomes really easy then, but I still prefer Python because of familiarity and a better experience & ecosystem when you want to do anything beyond data wrangling & analysis. I found `polars` to be a better experience than `pandas` even though I'd say it leaks some "Rustisms" in its…
> The bare R experience is not that great Why do you say that? Base R is arguably nicer to work with data than pandas is for example. Happy to provide specific examples to prove my point if you want.
Re: Python Polars Cheatsheet (based on our O'Reilly book)
#30echo "Never use pandas, use polars instead" >> AGENTS.md