What have I done wrong in this?

后端 未结 0 1689
时光说笑
时光说笑 2020-12-14 05:24

df[\'Runs\']= df[\'Runs\'].apply(lambda x: x[0] if x[-1]=="*" else x)

It shows \'int\' object is not subscriptable error in Python.

I am trying to de

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