Pandas is such a unique learning experience. It's the only tool where my mental model changes substantively every time I use it. Yet, I find Pandas hard to "properly" learn because all the tutorials are boring stock market examples.
-
-
But at the same time, for the parts of the programming model that I do understand, I feel really productive. It's like a beautiful mix of SQL and jq. I never have to use a for-loop, and I rarely even need a higher-order function.
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I was once filtering for dataframe expressions from Jupyter notebooks. Tried making a small grammar to capture them using lark (https://github.com/lark-parser/lark …) and it was frustrating how many different forms there were for subsetting.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
but... the top left 3 bullets are the exact same as the top right 3 bullets, it's just a preference on how you access a column of a data frame (not actually how you filter)
-
In the context of the paper, Yifan was comparing these to "SELECT a FROM df WHERE a > 3", to make the point that SQL offers a single way to do this while pandas has many. But the 8 points definitely come from a combinatorial explosion of fewer choices.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD