Skip to content

Instantly share code, notes, and snippets.

@BenGeissel
Created December 17, 2019 19:48
Show Gist options
  • Save BenGeissel/49ba2a2326bf9e34bdfc1581035581ee to your computer and use it in GitHub Desktop.
Save BenGeissel/49ba2a2326bf9e34bdfc1581035581ee to your computer and use it in GitHub Desktop.
max_temp_2018_df.State_Code = max_temp_2018_df.State_Code.apply(lambda x : "{0:0=2d}".format(x))
max_temp_2018_df.Division_Number = max_temp_2018_df.Division_Number.apply(lambda x : "{0:0=3d}".format(x))
max_temp_2018_df['FIPS'] = max_temp_2018_df.State_Code + max_temp_2018_df.Division_Number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment