python/datasources/acs_population.py
def standardize_race(self, df):
        """Standardized format using mutually exclusive groups by excluding
           Hispanic or Latino from other racial groups. Summing across all
           RACE_OR_HISPANIC_COL values equals the total population."""
        standardized_race = df.copy()
        standardized_race[RACE_OR_HISPANIC_COL] = standardized_race.apply(
            get_standardized_race, axis=1)
        standardized_race = standardized_race.drop([HISPANIC_COL, RACE_COL], axis=1)
        group_by_cols = self.base_group_by_cols.copy()
        group_by_cols.append(RACE_OR_HISPANIC_COL)
        standardized_race = standardized_race.groupby(group_by_cols).sum().reset_index()
        return standardized_race
Standardized format using mutually exclusive groups by excluding
           Hispanic or Latino from other racial groups. Summing across all
           RACE_OR_HISPANIC_COL values equals the total population.
Standardized format using mutually exclusive groups by excluding
Hispanic or Latino from other racial groups. Summing across all
RACE_OR_HISPANIC_COL values equals the total population.
Standardized format using mutually exclusive groups by excluding Hispanic or Latino from other racial groups . Summing across all RACE_OR_HISPANIC_COL values equals the total population .
def standardize_race(self, df):
        standardized_race = df.copy()
        standardized_race[RACE_OR_HISPANIC_COL] = standardized_race.apply(
            get_standardized_race, axis=1)
        standardized_race = standardized_race.drop([HISPANIC_COL, RACE_COL], axis=1)
        group_by_cols = self.base_group_by_cols.copy()
        group_by_cols.append(RACE_OR_HISPANIC_COL)
        standardized_race = standardized_race.groupby(group_by_cols).sum().reset_index()
        return standardized_race
def standardize_race ( self , df ) : standardized_race = df . copy ( ) standardized_race [ RACE_OR_HISPANIC_COL ] = standardized_race . apply ( get_standardized_race , axis = 1 ) standardized_race = standardized_race . drop ( [ HISPANIC_COL , RACE_COL ] , axis = 1 ) group_by_cols = self . base_group_by_cols . copy ( ) group_by_cols . append ( RACE_OR_HISPANIC_COL ) standardized_race = standardized_race . groupby ( group_by_cols ) . sum ( ) . reset_index ( ) return standardized_race
Standardized format using mutually exclusive groups by excluding
Hispanic or Latino from other racial groups.
Standardized format using mutually exclusive groups by excluding Hispanic or Latino from other racial groups .
"""Standardized format using mutually exclusive groups by excluding
           Hispanic or Latino from other racial groups. Summing across all
           RACE_OR_HISPANIC_COL values equals the total population."""
self
df