MCPcopy Index your code
hub / github.com/ipython/ipython / test_pandas_series

Function test_pandas_series

tests/test_guarded_eval.py:139–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138@dec.skip_without("pandas")
139def test_pandas_series():
140 import pandas as pd
141
142 context = limited(data=pd.Series([1], index=["a"]))
143 assert guarded_eval('data["a"]', context) == 1
144 with pytest.raises(KeyError):
145 guarded_eval('data["c"]', context)
146
147
148@dec.skip_without("pandas")

Callers

nothing calls this directly

Calls 1

guarded_evalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…