I am trying to change the index type from int
to string
after a value_counts()
df
['value']
.value_counts()
.sort_index()
output:
40.0 1448
45.0 28558
50.0 83675
55.0 96377
60.0 47351
65.0 13226
70.0 2602
75.0 568
80.0 72
100.0 52
105.0 53
Name: value, dtype: int64
expected output:
40.0 1448
45.0 28558
50.0 83675
55.0 96377
60.0 47351
65.0 13226
70.0 2602
75.0 568
80.0 72
100.0 52
105.0 53
Name: value, dtype: string
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…