Having created a dictionary of country names and their codes, I added them to the DataFrame using a simple for loop. Here is how the map will look like (may need a few seconds to load): Using Leaflet to Create a Web Map I now have clean GeoJSON data. Add a Bokeh Slider Widget that enables a user to change the data based on year. Create our GeoJSONDataSource object with our initial data from 2018. We are going to make use of a list and a tuple iterator in map() function. In the main code we insert HoverTool code and tell it to use the data based on the neighborhood_name and display the six criteria using “@” to indicate the column values. Create a Heroku app and connect to your GitHub repository containing your .py file. Python map () is a built-in function. a list, a tuple, etc. In a typical Bokeh interactive graph the data source needs to be a ColumnDataSource. I have used list() in the code that displays the values inside the list given. However, in case you want to save it in a local file, one better way to accomplish is through a python module called gmplot. Check Home Prices First! Using Leaflet and Folium to make interactive maps in Python Using the format_df we pull out the minimum range, maximum range and formatting for the ColorBar. The map()function in python has the following syntax: map(func, *iterables) Where func is the function on which each element in iterables (as many as they are) would be applied on. Add a Bokeh Slider Widget that enables a user to change the data based on year. The best use of ChainMap is to search through multiple dictionaries at a time and get the proper key-value pair mapping. 13-10-07 Update: Please see the Vincent docs for updated map plotting syntax. Notice they both have the column subdist_no (the neighborhood identifier) in common. The reason for this choice is that it uses only a built-in python module: We are going to make use of two lists my_list1 and my_list2. The output of the map() function, as seen in the output, is a map object displayed on the screen as