Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
Note that the dot-value_counts() methods works on Series only. # Get marriage status column marriage_status = demographics['marriage_status'] marriage_status.value_counts() inconsistent capitalization To deal with this, we can either capitalize or lowercase the marriage_status column. This can be