r/learnpython • • Nov 28 '20

Data analysis for beginners

Hi all,

What would you recommend as the best route to start learning towards data analysis with Python (I will add that I'm not planning on becoming data analyst/scientist within few months or so - I started learning Python 4 months ago, got the basics, not interested in building websites, creating games, but I would like to explore data; I also already started learning SQL 2 months ago. Really taking it easy and want to see where it all leads to, but extremely happy that I'm learning new skill).

Should I start with Matplotlib? Or Numpy? Or Pandas?

Any other tips or recommendations?

Thank you for your answers in advance!

330 Upvotes

35 comments sorted by

View all comments

20

u/foyslakesheriff Nov 29 '20 edited Nov 29 '20

Dude, you need to learn the math. I say this to you because it's easier than saying it to myself, and I need to hear it more often. Have a good handle on statistics, linear algebra, and calculus. It's not sexy but it's necessary to not waste your time in the long term. I hate hearing that because I love learning new Python frameworks. After learning the theory, the tools will make more sense. People might say that we have those tools so that we don't have to reinvent the wheel each time. That is true. But you still gotta know how a wheel works, otherwise you won't know how to diagnose and treat an issue when you get unexpected results.

If you don't understand linear algebra, then you won't understand why you're using Pandas. If you don't understand some regression models, scikit-learn won't be useful. Et cetera

It's not so much what you start with, because you will need to know all of those tools and use them together. Pandas uses numpy under the hood so to speak. Matplotlib will make your data output pretty. You might need SQL. I would start small, and create a few exploratory jupyter notebooks that use all those packages at least a bit.

Having said that, watch Andrew Ng's stuff.

3

u/Rainbow_Moonbeam Nov 29 '20

There's an edx micro masters series of courses by the university of San Diego which I'm working through. There's four in total: Python for Data Science, Statistics, Machine Learning, and Spark for Big Data. I'm halfway through the stats one at the moment.

The first course had a much stronger focus on "Python" than "data science" - kind of dipping your toes into it and seeing what sorts of things you could do. A bit of pandas, a bit of numpy, a quick intro to machine learning, and a few mini projects.

The second course is way more data science than python. It's almost all maths with a tiny bit of how to do the same thing but in python. It's pretty tough (micro masters assumes you have university level maths experience and I stopped studying maths at 18) but I'm looking forward to understanding data better and knowing what's relevant/statistically significant etc.

I enjoyed the first course but kind of felt like all my analysis was a bit silly and superficial. I could find correlations but I didn't know if it was important. I could copy the way the teachers used machine learning but didn't know if I was using the right model for the task or how to find more in depth analysis. I'm hoping that after I finish the next few courses, I'll be able to understand this all better.