Substring Index Python Pandas Dataframe Example