As per the instructions on Coursera: write a function eq_location_clean() that cleans the LOCATION_NAME column by stripping out the country name (including the colon) and converts names to title case (as opposed to all caps). This will be needed later for annotating visualizations.
a dataframe containing a column LOCATION_NAME that will be cleaned
Returns a cleaned dataframe as described
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.