Python 提供了一套丰富的字符串方法用于操作文本:strip()、split()、replace()、upper()、lower()、startswith()、endswith() 等。这些方法可以直接应用于字符串,或通过 Pandas 的 .str 访问器对整个列进行向量化文本清理。
strip()
split()
replace()
upper()
lower()
startswith()
endswith()
.str
用自己的话写下这一站的结论。