December 2018
Beginner to intermediate
682 pages
18h 1m
English
Reshaping with the stack/unstack methods is far easier when each axis (index/column) level has a name. Pandas allows users to reference each axis level by integer location or by name. Since integer location is implicit and not explicit, you should consider using level names whenever possible. This advice follows from The Zen of Python (http://bit.ly/2xE83uC), a short list of guiding principles for Python of which the second one is Explicit is better than implicit.