While creating series, you might have observed that in output, we are getting numbers starting from zero (0) which represents the count of the rows in the series that is called as POSITIONAL INDEX(default). This index can be changed using index keyword or by renaming index and are called as USER-DEFINED INDEX.
Indexing is defined as the technique of accessing the elements or data of the series using Index. It helps in accessing the value or data at every index.
#importing required libraries
import pandas as pd
#creating a list of names
list1 = ['Aman', 'Raghav', 'Shubham', 'Rohit', 'Yash']
ser = pd.Series(list1)
#accessing element of the series
print(ser[3])
OUTPUT:
Rohit #Rohit is present at index 3