code: def _reindex(df, col):
      '''internal'''
      if col in df.columns:
          df.set_index(col, inplace=Truef _reindex(df, col):
      '''internal'''
      if col in df.columns:
          df.set_index(col, inplace=True)
docs: internal