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.
-
Show this thread
-
There's infinite cases where I can articulate the high-level task, and have no idea how to accomplish it without a for loop & iterrows.
2 replies 0 retweets 1 likeShow this thread -
Like today, I wanted to filter outliers within a group defined by two columns. Found an SO post about doing this within a single-column group. It used a novel mechanism (broadcasting between dataframes of different sizes) and I kept failing to transfer the example to my task.
2 replies 0 retweets 2 likesShow this thread -
Maybe Pandas is just overly complex. I liked
@yifanwu's example of 8 different ways to filter a dataframe.pic.twitter.com/J3xLfiVHeG
3 replies 0 retweets 6 likesShow this thread
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.
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