This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BSD 2-Clause License | |
// | |
// Copyright (c) 2018, Florent Chehab | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// | |
// * Redistributions of source code must retain the above copyright notice, this | |
// list of conditions and the following disclaimer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from folium.folium import color_brewer, StepColormap, GeoJson, TopoJson | |
# We decided to extend folium.Map to tackle the following issues | |
# retlated to the function choropleth: | |
# - The color interval might be calculated with some inconsistencies | |
# (see issue: https://github.com/python-visualization/folium/issues/971) | |
# - NaN values are not realy handle and will correspond | |
# to the last "color bin" | |
# (see issue: https://github.com/python-visualization/folium/issues/996) | |
# - And also, the colorbar might not be exact and some associated colors might |