def get_fips(df):
    """Convert State/County codes to FIPS locations."""
    state = df['STATE'].apply(lambda x: str(x).zfill(2))
    county = df['COUNTY'].apply(lambda x: str(x).zfill(3))
    fips = state + county
    return fips.where(df['COUNTY'].between(1, 996))
