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 that unused columns don't get transmitted.
docstr_tok: ["Test","that","unused","columns","do","n't","get","transmitted","."]
code: def test_unused_columns_get_dropped(self):
      """Test that unused columns don't get transmitted."""
      df = pd.DataFrame(
          {
              "lat": [38.8762997, 38.8742997, 38.9025842],
              "lon": [-77.0037, -77.0057, -77.0556545],
              "int_color": [
                  [255, 0, 0, 128],
                  [0, 255, 0, 128],
                  [0, 0, 255, 128],
              ],
              "size": [100, 50, 30],
              "xlat": [-38.8762997, -38.8742997, -38.9025842],
              "xlon": [77.0037, 77.0057, 77.0556545],
          }
      )
  
      st.map(df)
      c = json.loads(
          self.get_delta_from_queue().new_element.deck_gl_json_chart.json
      )
      self.assertEqual(len(c.get("layers")[0].get("data")[0]), 2)
  
      st.map(df, latitude="xlat", longitude="xlon")
      c = json.loads(
          self.get_delta_from_queue().new_element.deck_gl_json_chart.json
      )
      self.assertEqual(len(c.get("layers")[0].get("data")[0]), 2)
  
      st.map(df, latitude="xlat", longitude="xlon", color="int_color")
      c = json.loads(
          self.get_delta_from_queue().new_element.deck_gl_json_chart.json
      )
      self.assertEqual(len(c.get("layers")[0].get("data")[0]), 3)
  
      st.map(df, latitude="xlat", longitude="xlon", size="size")
      c = json.loads(
          self.get_delta_from_queue().new_element.deck_gl_json_chart.json
      )
      self.assertEqual(len(c.get("layers")[0].get("data")[0]), 3)
  
      st.map(
          df,
          latitude="xlat",
          longitude="xlon",
          color="int_color",
          size="size",
      )
      c = json.loads(
          self.get_delta_from_queue().new_element.deck_gl_json_chart.json
      )
      self.assertEqual(len(c.get("layers")[0].get("data")[0]), 4)
  
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 6 for calling the StMapTest obj's underlying member method code with example usage: obj.test_unused_columns_get_dropped() without return types