http://stackoverflow.com/questions/15325182/how-to-filter-rows-in-pandas-by-regex

 

 

dbstk.loc[dbstk.STKCODE.str.startswith('6'),:]

 

dbstk.loc[dbstk.STKCODE.str.contains(^[0,3,6]\d{5}$)]

 

stkdf = stkdf[stkdf['STOCKCODE'].map(lambda x:x[0]=='0' or x[0]=='3' or x[0]=='6')]

相关文章:

  • 2021-04-25
  • 2022-01-06
  • 2021-12-12
  • 2021-12-27
  • 2022-12-23
  • 2021-10-14
  • 2021-05-31
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-12-31
  • 2022-12-23
  • 2021-12-05
  • 1970-01-01
相关资源
相似解决方案