pandas.series.str.isalnum 检查字符串是否全由字符和数组组成(大小写字母均可)

等效于

import re

def is_alphanumeric(string):
    pattern = '^[A-Za-z0-9]+$'
    if re.search(pattern, string):
        return True
    return False

series.map(is_alphanumeric)

https://blog.csdn.net/qq_28668779/article/details/126252653