helpers/utils.py
def pad_fips_state(df: pd.DataFrame, fipscol: str) -> pd.DataFrame:
        """
            Convert fips_state_code to string and pad it with leading 0s
            to make it 2 digits long

            Args
            ----------
            df: pd.DataFrame
                        input dataframe
            
            fipscol: str
                        name of the column in the df that contains the fips_state_code

            Returns
            ----------
            df: pd.DataFrame
                        modified df with its fips_state_code stringed and padded 
        """
        # Add leading 0s to make fips_state_code 2 digits long
        df[fipscol] = df[fipscol].astype(str).str.zfill(2)
        
        return df

            Convert fips_state_code to string and pad it with leading 0s
            to make it 2 digits long

            Args
            ----------
            df: pd.DataFrame
                        input dataframe
            
            fipscol: str
                        name of the column in the df that contains the fips_state_code

            Returns
            ----------
            df: pd.DataFrame
                        modified df with its fips_state_code stringed and padded 
        
Convert fips_state_code to string and pad it with leading 0s
to make it 2 digits long

Args



str
name of the column in the df that contains the fips_state_code

Returns

pd.DataFrame
modified df with its fips_state_code stringed and padded
Convert fips_state_code to string and pad it with leading 0s to make it 2 digits long Args str name of the column in the df that contains the fips_state_code Returns pd . DataFrame modified df with its fips_state_code stringed and padded
def pad_fips_state(df: pd.DataFrame, fipscol: str) -> pd.DataFrame:
        df[fipscol] = df[fipscol].astype(str).str.zfill(2)
        return df
def pad_fips_state ( df : pd . DataFrame , fipscol : str ) -> pd . DataFrame : df [ fipscol ] = df [ fipscol ] . astype ( str ) . str . zfill ( 2 ) return df
Convert fips_state_code to string and pad it with leading 0s
to make it 2 digits long
Convert fips_state_code to string and pad it with leading 0s to make it 2 digits long
"""
            Convert fips_state_code to string and pad it with leading 0s
            to make it 2 digits long

            Args
            ----------
            df: pd.DataFrame
                        input dataframe
            
            fipscol: str
                        name of the column in the df that contains the fips_state_code

            Returns
            ----------
            df: pd.DataFrame
                        modified df with its fips_state_code stringed and padded 
        """ # Add leading 0s to make fips_state_code 2 digits long
df
pd.DataFrame
fipscol
str