/100-pandas-puzzles

Sharpen your skills with 100 short data problems, ranging from very easy to super tricky (50% complete)

Primary LanguageJupyter Notebook

100 pandas puzzles

Click here for the puzzles!

Inspired by 100 Numpy exerises, here are 100* short puzzles for testing your knowledge of pandas' power.

Since pandas is a large library with many different specialist features and functions, these excercises focus mainly on the fundamentals of manipulating data (indexing, grouping, aggregating, cleaning), making use of the core DataFrame and Series objects. Many of the excerises here are stright-forward in that the solutions require no more than a few lines of code (in pandas or NumPy - don't go using pure Python or Cython!). Choosing the right methods and following best practices is the underlying goal.

The exercises are loosely divided in sections. Each section has a difficulty rating; these ratings are subjective, of course, but should be a seen as a rough guide as to how elaborate a solution is required.

The official documentation for pandas is very useful and very extensive. Good places get a broader overview of pandas are

* the list of exercises is not complete! Pull requests or suggestions for additional exercises, corrections and improvements are welcomed.