Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #python #pandas #series #title #case
ADD COMMENT
Topic
Name
6+8 =