Home / Function/ test_pandas_output_parser_special_ops() — langchain Function Reference

test_pandas_output_parser_special_ops() — langchain Function Reference

Architecture documentation for the test_pandas_output_parser_special_ops() function in test_pandas_dataframe_parser.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  51bafc1a_575d_35cd_f593_85ca7c17991a["test_pandas_output_parser_special_ops()"]
  5c33c708_b9fe_6a38_ae59_ce55c90ae8fc["test_pandas_dataframe_parser.py"]
  51bafc1a_575d_35cd_f593_85ca7c17991a -->|defined in| 5c33c708_b9fe_6a38_ae59_ce55c90ae8fc
  style 51bafc1a_575d_35cd_f593_85ca7c17991a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/output_parsers/test_pandas_dataframe_parser.py lines 77–100

def test_pandas_output_parser_special_ops() -> None:
    actual_output = [
        {"mean": 3.0},
        {"median": 3.0},
        {"min": 2},
        {"max": 4},
        {"var": 1.0},
        {"std": 1.0},
        {"count": 3},
        {"quantile": 3.0},
    ]

    expected_output = [
        parser.parse("mean:chicken[1..3]"),
        parser.parse("median:chicken[1..3]"),
        parser.parse("min:chicken[1..3]"),
        parser.parse("max:chicken[1..3]"),
        parser.parse("var:chicken[1..3]"),
        parser.parse("std:chicken[1..3]"),
        parser.parse("count:chicken[1..3]"),
        parser.parse("quantile:chicken[1..3]"),
    ]

    assert actual_output == expected_output

Domain

Subdomains

Frequently Asked Questions

What does test_pandas_output_parser_special_ops() do?
test_pandas_output_parser_special_ops() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/output_parsers/test_pandas_dataframe_parser.py.
Where is test_pandas_output_parser_special_ops() defined?
test_pandas_output_parser_special_ops() is defined in libs/langchain/tests/unit_tests/output_parsers/test_pandas_dataframe_parser.py at line 77.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free