MCPcopy
hub / github.com/pandas-dev/pandas / test_frame_getitem

Function test_frame_getitem

pandas/tests/test_col.py:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119
120def test_frame_getitem() -> None:
121 # https://github.com/pandas-dev/pandas/pull/63439
122 df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
123 expr = pd.col("a") == 2
124 result = df[expr]
125 expected = df.iloc[[1]]
126 tm.assert_frame_equal(result, expected)
127
128
129def test_frame_setitem() -> None:

Callers

nothing calls this directly

Calls 1

colMethod · 0.80

Tested by

no test coverage detected