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