4 ms·
>Is there something wrong with me or does numpy and pandas seem more difficult than they should be? If you're only an occasional user, this will be your life f
by BeetleB 7y ago
>Is there something wrong with me or does numpy and pandas seem more difficult than they should be?
If you're only an occasional user, this will be your life forever. My experience with pandas is that if you use it heavily for 3 months, then things start to "stick" and you need to look it up less often.
Unfortunately I changed jobs and have forgotten most of pandas, so I'm back to looking things up again.
- disgruntledphd2 7y agopandas has a terrible API (IMO obviously). It looks like a weird mixture of Numpy and pre-2010 R code. Like it has great fucntionality, but I waste so much time trying to figure out how to do something with pandas. And I can remember the R-API's, which are even more annoying ;)
- luckydata 7y agore: weird mixture of Numpy and pre-2010R It does because it is. Pandas was written by someone that was just starting out with Python at the time and was coming from programming in R.
- EForEndeavour 7y agoPandas was extensively rewritten since its first few versions, and its GitHub repo has 1500+ contributors now, so I doubt that Wes McKinney's initial lack of python experience had much to do with the API rough spots of modern pandas. "Pre-2010 R" doesn't mean much to me, but I can confidently point out that pandas "looks like a weird mixture of numpy" because it is based heavily on numpy.
- disgruntledphd2 7y agoIt basically means pre-tidyverse R. pandas looks like a weird hybrid of Numpy and R. It's such a shame, as python has marvellous abstraction facilities, and yet they aren't used in pandas (__methods__ etc).