In addition to the standard indexing operator
 and attribute operator, there are operators provided in pandas to make the job of indexing easier and more convenient. By label indexing, we generally mean indexing by a header name, which tends to be a string value in most cases. These operators are as follows:
.locoperator: It allows label-oriented indexing
.ilocoperator: It allows integer-based indexing
.ixoperator: It allows mixed label and integer-based indexing
We will now turn our attention to these operators.
.loc operator supports pure label-based indexing. It accepts the following as valid inputs: