Dapatkan indeks untuk value_counts ()

vl_list = df["X"].value_counts().index
Index(['c', 'b', 'a'], dtype='object')
Chunxiao Wang