December 2017
Beginner to intermediate
410 pages
12h 45m
English
Python is an object-oriented language, meaning that every thing you create or use is a “class.” Classes allow the programmer to group relevant functions and methods together. In Pandas, Series and DataFrame are classes, and each has its own attributes (e.g., shape) and methods (e.g., apply). While it’s not my intention to give a lesson on object-oriented programming here, I want to very quickly cover classes, with the hope that this information will help you navigate the official documentation and understand why things are the way they are.
What’s nice about classes is that the programmer can define any class for his/her intended purpose. The following class represents a person. There are a first name (fname), a last name (lname), ...