title case multiple columns pandas code example
Example: proper function pandas
# Convert column in dataframe to first letter Capitalized
df['name'] = df['name'].str.title()
# Returns "Bob" instead of "bob"
# Convert column in dataframe to first letter Capitalized
df['name'] = df['name'].str.title()
# Returns "Bob" instead of "bob"