Question: Notice that the column names are inconsistent. Use dictionary comprehension (similar to list comprehension, but for dictionaries) to create a dictionary where the keys are
Notice that the column names are inconsistent. Use dictionary comprehension (similar to list comprehension, but for dictionaries) to create a dictionary where the keys are the column names with a space between the words and values as the column names without the space. Use this dictionary to rename the columns of the dataframe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
