Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
demographics['marriage_status'] marriage_status.value_counts() To remove leading spaces, we can use the str-dot-strip() method which when given no input, strips all leading and trailing white spaces. # Strip all spaces demographics = demographics['marriage_status'].str.strip()