Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
index using the index attribute. Since this is a multi index DataFrame, it returns a multi index object containing pairs of row indices from census_A and census_B respectively. We want to extract all census_B indices, so we chain it with the get_level_values method, which takes in which column