MCPcopy Create free account
hub / github.com/python-visualization/folium / norm

Function norm

tests/plugins/test_time_slider_choropleth.py:62–63  ·  view source on GitHub ↗
(col)

Source from the content-addressed store, hash-verified

60
61 # Define function to normalize column into range [0,1]
62 def norm(col):
63 return (col - col.min()) / (col.max() - col.min())
64
65 for country, data in styledata.items():
66 data["color"] = data["color"].apply(cmap)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…