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

Method _create_alignable_frame

dask/dataframe/dask_expr/_collection.py:2064–2075  ·  view source on GitHub ↗
(self, other, join="outer")

Source from the content-addressed store, hash-verified

2062 return new_collection(self.expr.rename_axis(mapper, index, columns, axis))
2063
2064 def _create_alignable_frame(self, other, join="outer"):
2065 if not is_dask_collection(other) and (
2066 is_series_like(other) or is_dataframe_like(other)
2067 ):
2068 if join in ("inner", "left"):
2069 npartitions = 1
2070 else:
2071 # We have to trigger alignment, otherwise pandas will add
2072 # the same values to every partition
2073 npartitions = 2
2074 other = from_pandas(other, npartitions=npartitions)
2075 return other
2076
2077 @derived_from(pd.DataFrame)
2078 def align(self, other, join="outer", axis=None, fill_value=None):

Callers 8

combine_firstMethod · 0.95
whereMethod · 0.95
maskMethod · 0.95
alignMethod · 0.95
_wrap_expr_opFunction · 0.80
methodFunction · 0.80
combineMethod · 0.80
combineMethod · 0.80

Calls 4

is_dask_collectionFunction · 0.90
is_series_likeFunction · 0.85
is_dataframe_likeFunction · 0.85
from_pandasFunction · 0.85

Tested by

no test coverage detected