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

Function compare

dask/dataframe/dask_expr/_expr.py:3190–3194  ·  view source on GitHub ↗
(s, df)

Source from the content-addressed store, hash-verified

3188 """
3189
3190 def compare(s, df):
3191 try:
3192 return s.divisions == (min(df.columns), max(df.columns))
3193 except (TypeError, ValueError):
3194 return False
3195
3196 return (
3197 s.ndim == 1

Callers 3

is_broadcastableFunction · 0.85
test_read_hdfFunction · 0.85
test_propertiesMethod · 0.85

Calls 2

minFunction · 0.85
maxFunction · 0.85

Tested by 2

test_read_hdfFunction · 0.68
test_propertiesMethod · 0.68