code: def test_categorical_string_comparison_6283() -> None:
      scores = pl.DataFrame(
          {
              "zone": pl.Series(
                  [
                      "North",
                      "North",
                      "North",
                      "South",
                      "South",
                      "East",
                      "East",
                      "East",
                      "East",
                  ]
              ).cast(pl.Categorical),
              "funding": pl.Series(
                  [
                      "yes",
                      "yes",
                      "no",
                      "yes",
                      "no",
                      "no",
                      "no",
                      "yes",
                      "yes",
                  ]
              ).cast(pl.Categorical),
              "score": [78, 39, 76, 56, 67, 89, 100, 55, 80],
          }
      )
  
      assert scores.filter(scores["zone"] == "North").to_dict(
          as_series=False
      ) == {
          "zone": ["North", "North", "North"],
          "funding": ["yes", "yes", "no"],
          "score": [78, 39, 76],
      }
  
file_path: polars/py-polars/tests/unit/operations/test_filter.py
imports: from datetime import datetime
  import pytest
  import polars
  from polars import PolarsDataType
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_categorical_string_comparison_6283() without return types