Video introduction to model publishingΒΆ

If you want to follow along with the example shown in the video, you can copy the snippets below:

  1. Command to fetch zipcode lookup table:

  2. Contents of script used in the model:

    import pandas as pd
    zips = pd.read_csv("free-zipcode-database.csv")
    def zip_pop (my_zip):
        my_zip_pop = zips.loc[zips['Zipcode'] == my_zip]['EstimatedPopulation'].values[0]
        return my_zip_pop