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

97

u/ectomancer Nov 28 '20

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!

16

u/Mondoke Nov 28 '20

On my experience, matplotlib is more useful than numpy, but it will depend on where you are going to work.

Sklearn is a very nice addition to have, but you need to have a background in statistics (which, for data analysis, is already relevant).

Also, there are some non python skills that you will need to have, because the companies you'll work will have a data structure of some kind. So, knowing Excel to an intermediate level and SQL is a big plus. For Excel, knowing some power query will make some tasks like fuzzy matches way easier than using python.

6

u/gottsc04 Nov 29 '20

Pandas definitely seems to be the most popular data science tool, it has loads of documentation and you can just do so much with it.

If you know R, for some reason I found matplotlib fairly similar in its basic uses. Granted I was learning them both at the same but in different courses. I'm still learning python but I think numpy is better suited for some machine learning uses. Take what I say with a grain of salt though! Good luck

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.

1

u/nojustlurkingty Nov 28 '20

And I also agree with this. Corey Schafer is the man and I've learned a lot being about halfway through this series