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.
-
-
Show 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.
Show 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
Show 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.
Show this thread
End of conversation
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