class_docstr: Test class for the Folium library.
class_docstr_tok: ["Test","class","for","the","Folium","library","."]
docstr: Test to make sure that Choropleth function doesn't raises
  a ValueError when the 'key_on' field is set to a column that might
  have 0 as a value.
docstr_tok: ["Test","to","make","sure","that","Choropleth","function","does","n't","raises","a","ValueError","when","the","'key_on","'","field","is","set","to","a","column","that","might","have","0","as","a","value","."]
code: def test_choropleth_key_on(self):
      """Test to make sure that Choropleth function doesn't raises
      a ValueError when the 'key_on' field is set to a column that might
      have 0 as a value.
      """
      with open(os.path.join(rootpath, "geo_grid.json")) as f:
          geo_data = json.load(f)
      data = pd.DataFrame(
          {
              "idx": {"0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5},
              "value": {
                  "0": 78.0,
                  "1": 39.0,
                  "2": 0.0,
                  "3": 81.0,
                  "4": 42.0,
                  "5": 68.0,
              },
          }
      )
      fill_color = "BuPu"
      columns = ["idx", "value"]
      key_on = "feature.properties.idx"
  
      Choropleth(
          geo_data=geo_data,
          data=data,
          key_on=key_on,
          fill_color=fill_color,
          columns=columns,
      )
  
imports: import json
  import os
  import branca.element
  import geopandas
  import jinja2
  import numpy
  import pandas
  import pytest
  import xyzservices.providers
  from jinja2 import Environment, PackageLoader
  from jinja2.utils import htmlsafe_json_dumps
  import folium
  from folium import TileLayer
  from folium.features import Choropleth, GeoJson
label_desc: Use image node_id 9 for calling the TestFolium obj's underlying member method code with example usage: obj.test_choropleth_key_on() without return types