MCPcopy Create free account
hub / github.com/dask/dask / test_loc_with_function

Function test_loc_with_function

dask/dataframe/dask_expr/tests/test_indexing.py:137–143  ·  view source on GitHub ↗
(df, pdf)

Source from the content-addressed store, hash-verified

135
136
137def test_loc_with_function(df, pdf):
138 assert_eq(df.loc[lambda df: df["x"] > 3, :], pdf.loc[lambda df: df["x"] > 3, :])
139
140 def _col_loc_fun(_df):
141 return _df.columns.str.contains("y")
142
143 assert_eq(df.loc[:, _col_loc_fun], pdf.loc[:, _col_loc_fun])
144
145
146def test_getitem_align():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected