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

Show parent comments

32

u/Matheos7 Nov 28 '20

Corey...that man cannot be praised enough. Learned a ton from his videos, will certainly watch this then.

What would you recommend after it? Matplotlib or NumPy? Or something else? Thanks!

4

u/synthphreak Nov 29 '20

IME you don't actually need to know much numpy directly unles you will be manually coding up math. Math aside, most other libraries do the hard numpy work for you under the hood, such as pandas which is essentially just a wrapper around numpy.

Matplotlib is a great one to know if your analysis will involve plotting, which it should. Others might recommend seaborn, but I don't know seaborn, and I have been perfectly fine. Matplotlib vs. seaborn is probably just a preference thing rather than anything objective. You can also do some simple plotting with just pandas.

As someone who analyzes large data sets for a living, I honestly am just fine knowing pandas. You can get a loooooooot of miles out of being fluent with pd.DataFrame. The cited Corey Schafer playlist is a good one for this. Another excelent resource, which you can access for free if you don't care about certificates, is this Coursera course (although I'd recommend paying to get access to the assignments which are super, super helpful).

2

u/[deleted] Nov 30 '20

Matplotlib is a great one to know if your analysis will involve plotting, which it should. Others might recommend seaborn, but I don't know seaborn, and I have been perfectly fine. Matplotlib vs. seaborn is probably just a preference thing rather than anything objective

Seaborn builds on top of matplotlib. It starts with changing a lot of the matplotlib defaults to be a bit more 'modern', then it adds more higher level functions for analyzing relationships in multiple dimensional data. But you need to know Matplotlib to fully understand seaborn, as you can still interact with plt using the new seaborn settings.

People should start with matplotlib, but seaborn has some niche uses in analysis that make it a good idea to learn.

1

u/synthphreak Nov 30 '20

Good points. Have some karma.