I have dataframe (df) with column names as shown below and I want to rename it any specific name
Renaming condition:
- Remove the underscore
-in the column name - Replace the first letter coming after the
-from smallcase to uppercase.
Original Column Name
df.head(1)
risk_num start_date end_date
12 12-3-2022 25-3-2022
Expected Column Name
df.head(1)
riskNum startDate endDate
12 12-3-2022 25-3-2022
How can this donein python.