# inplace = True --> modify original data
data.set_index('Year', inplace=True)
# equals to
data = data.set_index('Year')
When inplace = True is used, it performs operation on data and nothing is returned. When inplace=False is used, it performs operation on data and returns a new copy of data.