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

Function test_pandas_dataframe_loc

tests/test_guarded_eval.py:184–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183@dec.skip_without("pandas")
184def test_pandas_dataframe_loc():
185 import pandas as pd
186 from pandas.testing import assert_series_equal
187
188 data = pd.DataFrame([{"a": 1}])
189 context = limited(data=data)
190 assert_series_equal(guarded_eval('data.loc[:, "a"]', context), data["a"])
191
192
193def test_named_tuple():

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…