I have entries in pandas, I need to change the small letter to a large letter after the dash sign. And it is best to record this change in a separate column.
Example dataframe:
data columns_1
2020-05-20 test-word
Need result:
data columns_1 columns_2
2020-05-20 test-word Test-Word
I figured out that it is possible to change the first letter using:
df['columns_2'] = df['columns_1'].apply(lambda x: x.capitalize())
Is it possible to add something to this entry or is there some other method to do this?