UserWarning: Boolean Series key will be reindexed to match DataFrame index.

解决方法是两个并列的话,写在一起df[(df['******'].str.match('^??'))&(~df['*****'].str.match('^????'))]

猜你喜欢

转载自blog.csdn.net/weixin_45631815/article/details/116639940