There are a number of operation methods used to work in pandas. In this section of the chapter, we will look into some of the common operations that we will be doing in this book.
Operations and manipulations of pandas
Inspection of data
The first thing that you will want to do when loading a DataFrame or creating a DataFrame from a file is to inspect the data that you just loaded. We have two methods for inspecting the data:
- Head
- Tail
The head method will show us the data of the first five rows:
As you can see in the preceding screenshot, we have the first five rows and 34 columns displayed on running the data.head() method:
To take a look at the last five rows of data, you use the tail method. The preceding screenshot...