class_docstr: Test ability to marshall deck_gl_json_chart protos via st.map.
class_docstr_tok: ["Test","ability","to","marshall","deck_gl_json_chart","protos","via","st.map","."]
docstr: Test st.map with NaN in data.
docstr_tok: ["Test","st.map","with","NaN","in","data","."]
code: def test_nan_exception(self):
      """Test st.map with NaN in data."""
      df = pd.DataFrame({"lat": [1, 2, np.nan], "lon": [11, 12, 13]})
      with self.assertRaises(Exception) as ctx:
          st.map(df)
  
      self.assertIn(
          "not allowed to contain null values", str(ctx.exception)
      )
  
imports: import itertools
  import json
  import numpy
  import pandas
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.elements.map import _DEFAULT_MAP, _DEFAULT_ZOOM_LEVEL
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
  from tests.streamlit import pyspark_mocks
  from tests.streamlit.snowpark_mocks import DataFrame
  from tests.streamlit.snowpark_mocks import Table
  from tests.testutil import create_snowpark_session, patch_config_options
label_desc: Use image node_id 14 for calling the StMapTest obj's underlying member method code with example usage: obj.test_nan_exception() without return types