How to use pd.iloc[] in pd.sample()?

前端 未结 0 1663
野趣味
野趣味 2020-12-11 10:11

I have a dataframe stored in the variable \'cars\'.

dummy = cars.sample(5)
for i in dummy.index:
    print(i)

This gives no error and prints

相关标签:
回答
  • 消灭零回复
提交回复
热议问题