Reset index and after that you can set columns f_da = df_data['Prefix'].value_counts().reset_index() df_da.columns = ['Prefix', 'counts'].
確定! 回上一頁