用正则表达式从文本中提取想要的内容
twitter_archive_enhanced_clean.name = twitter_archive_enhanced_clean.text.str.extract('(?:This is|Meet|name is|Say hello to|named) ([A-Z][a-z]{2,12})', expand=False)
用正则表达式从文本中提取想要的内容
twitter_archive_enhanced_clean.name = twitter_archive_enhanced_clean.text.str.extract('(?:This is|Meet|name is|Say hello to|named) ([A-Z][a-z]{2,12})', expand=False)