Skip to content
1 hidden cell
Cleaning Data in Python
Cleaning Data in Python
Run the hidden code cell below to import the data used in this course.
1 hidden cell
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
Add your notes here
# Add your code snippets hereExplore Datasets
Use the DataFrames imported in the first cell to explore the data and practice your skills!
- For each DataFrame, inspect the data types of each column and, where needed, clean and convert columns into the correct data type. You should also rename any columns to have more descriptive titles.
- Identify and remove all the duplicate rows in
ride_sharing. - Inspect the unique values of all the columns in
airlinesand clean any inconsistencies. - For the
airlinesDataFrame, create a new column calledInternationalfromdest_region, where values representing US regions map toFalseand all other regions map toTrue. - The
bankingDataFrame contains out of date ages. Update theAgecolumn using today's date and thebirth_datecolumn. - Clean the
restaurants_newDataFrame so that it better matches the categories in thecityandtypecolumn of therestaurantsDataFrame. Afterward, given typos in restaurant names, use record linkage to generate possible pairs of rows betweenrestaurantsandrestaurants_newusing criteria you think is best.