Answers for "python pandas series to title case"

0

python pandas series to title case

>>> 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
Posted by: Guest on May-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language