4 ms·
I feel like I never use directly numpy anymore. All my data is in Pandas, and I mostly import numpy for the odd `df.transform(np.somefunction)` I remember it b
by wodenokoto 4y ago
I feel like I never use directly numpy anymore. All my data is in Pandas, and I mostly import numpy for the odd `df.transform(np.somefunction)`
I remember it being quite fun to build these vectorized numpy functions (in the crosswords and puzzles are fun, kind of way)
Figuring out how to make a transformation in Pandas is always frustrating, when it isn't straightforward.
- CapmCrackaWaka 4y agoThat's funny, I went the opposite direction. I only use pandas if I need to group by and aggregate, or to use in plotting functions. When doing array operations, I pretty much always use numpy, figuring out how to broadcast and vectorize operations is one of the most fun parts of my job in my opinion.
- hcrad 4y agoI have had the same experience and instead of Pandas have been using numpy-groupies to handle aggregate/groupby operations. It's quite performant and feels a bit cleaner to use than importing pandas for a couple operations. https://github.com/ml31415/numpy-groupies https://github.com/ml31415/numpy-groupies