【发布时间】:2019-02-06 03:41:45
【问题描述】:
例如;
pd.Series('ASKING CD.').str.contains('AS')
Out[58]:
0 True
dtype: bool
pd.Series('ASKING CD.').str.contains('ASG')
Out[59]:
0 False
dtype: bool
pd.Series('ASKING CD.').str.contains('SK.')
Out[60]:
0 True
dtype: bool
为什么第三个输出为真?没有“SK”。传递的字符串中的序列。 '点'字符没有任何意义?
【问题讨论】: