📜  python pandas系列到标题案例 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:04.944000             🧑  作者: Mango

代码示例1
>>> s = pd.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe'])
>>> s.str.title()
0                 Lower
1              Capitals
2    This Is A Sentence
3              Swapcase
dtype: object