can only use.str accessor with string value这是什么问题

img

![img](

"=600 #left"有没有大佬救救我,哭了😭😭

Pandas Series str 访问器并没有findall 方法,findall 一般和re,findall(...)配合使用,

其实可以用df['salary']=df['salary'].str.extract( r'(\d+)', expand=True) 代替,也是支持正则匹配的。

如果对你有帮助,帮忙采纳下,多谢!