index of a string index dataframe code example Example: index of a string index dataframe df[df.index.str.startswith('U')]