熊猫不会让计算速度更快。这个正则表达式可能适合您:
s.str.extract(r'(\w+)(\.\w{2,3})+$')[0]
但更好的解决方案是: Extract domain from URL in python