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

Function try_loc

dask/dataframe/methods.py:64–71  ·  view source on GitHub ↗

.loc for unknown divisions

(df, iindexer, cindexer=None)

Source from the content-addressed store, hash-verified

62
63
64def try_loc(df, iindexer, cindexer=None):
65 """
66 .loc for unknown divisions
67 """
68 try:
69 return loc(df, iindexer, cindexer)
70 except KeyError:
71 return df.head(0).loc[:, cindexer]
72
73
74def boundary_slice(df, start, stop, right_boundary=True, left_boundary=True):

Callers

nothing calls this directly

Calls 2

locFunction · 0.85
headMethod · 0.45

Tested by

no test coverage detected