python/datasources/covid_tracking_project.py
def _rename_race_category(df: pd.DataFrame, indicator_column: str,
                              old_name: Race, new_name: Race):
        """Renames values in df.race_and_ethnicity from old_name to new_name
           based on indicator_column.

        Args:
        df: pandas.DataFrame to modify
        indicator_column: Name of the column to be used to decide whether
            to rename the race value. Values should be Boolean.
        old_name: The race category to change
        new_name: The race category to rename to"""
        df[col_std.RACE_COL] = df.apply(
            CovidTrackingProject._replace_value, axis=1,
            args=(indicator_column, old_name, new_name))
Renames values in df.race_and_ethnicity from old_name to new_name
           based on indicator_column.

        Args:
        df: pandas.DataFrame to modify
        indicator_column: Name of the column to be used to decide whether
            to rename the race value. Values should be Boolean.
        old_name: The race category to change
        new_name: The race category to rename to


pandas.DataFrame to modify
indicator_column: Name of the column to be used to decide whether
to rename the race value. Values should be Boolean.
old_name: The race category to change
new_name: The race category to rename to
pandas . DataFrame to modify indicator_column : Name of the column to be used to decide whether to rename the race value . Values should be Boolean . old_name : The race category to change new_name : The race category to rename to
def _rename_race_category(df: pd.DataFrame, indicator_column: str,
                              old_name: Race, new_name: Race):
        df[col_std.RACE_COL] = df.apply(
            CovidTrackingProject._replace_value, axis=1,
            args=(indicator_column, old_name, new_name))
def _rename_race_category ( df : pd . DataFrame , indicator_column : str , old_name : Race , new_name : Race ) : df [ col_std . RACE_COL ] = df . apply ( CovidTrackingProject . _replace_value , axis = 1 , args = ( indicator_column , old_name , new_name ) )
Renames values in df.race_and_ethnicity from old_name to new_name
based on indicator_column.
Renames values in df . race_and_ethnicity from old_name to new_name based on indicator_column .
"""Renames values in df.race_and_ethnicity from old_name to new_name
           based on indicator_column.

        Args:
        df: pandas.DataFrame to modify
        indicator_column: Name of the column to be used to decide whether
            to rename the race value. Values should be Boolean.
        old_name: The race category to change
        new_name: The race category to rename to"""
df
pd.DataFrame
indicator_column
str
old_name
Race
new_name
Race