ret2.loc[ret2['INNERCODE'].map(lambda x:x[0]=='6' or x[0]=='3' or x[0]=='0' ),:]

和matlab不一样的风格 - -

直接用filter更方便
ret2 = filter(lambda x:x[0]=='6' or x[0]=='3' and x[0]=='0',ret)

用好map , filter, reduce

pandas,numpy,list要分清楚
pandas有.map
.filter没有iter

list直接用map,filter,类似matlab

相关文章:

  • 2021-12-15
  • 2021-12-15
  • 2021-08-05
  • 2022-03-01
  • 2021-12-14
  • 2021-08-16
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案