r/learnpython • u/pandaspractice • Dec 05 '20
Exercises to learn Pandas
Hello!
I created a site with exercises tailored for learning Pandas. Going through the exercises teaches you how to use the library and introduces you to the breadth of functionality available.
I want to make this site and these exercises as good as possible. If you have any suggestions, thoughts or feedback please let me know so I can incorporate it!
Hope you find this site helpful to your learning!
526
Upvotes
1
u/pandaspractice Dec 06 '20
hey /u/DrinkThatGoodMaiTai!
I'd recommend breaking it into pieces.
Figure out how to convert the date to just the year and month.
Find the set of customers for each year_month
Grab the set of customers for the most recent and second most recent months
Dive number of customers in the most recent month by the number of customers in the previous month. Be careful not to include new customers in the most recent month!
I just added a tab for example input to make it easier to iterate in a repl, such as in ipython in the terminal or a jupyter notebook. If you don't have one already set up, both kaggle and repl.it are good options for online repls with no set up required.