MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / left_join

Method left_join

functional/pipeline.py:1200–1212  ·  view source on GitHub ↗

Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V) pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs. V values will always be present, W values may be present or None. >>> seq([('a',

(self, other)

Source from the content-addressed store, hash-verified

1198 return self._transform(transformations.join_t(other, join_type))
1199
1200 def left_join(self, other):
1201 """
1202 Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
1203 pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
1204 V values will always be present, W values may be present or None.
1205
1206 >>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)])
1207 [('a', (1, 3)), ('b', (2, None)]
1208
1209 :param other: sequence to join with
1210 :return: left joined sequence of (K, (V, W)) pairs
1211 """
1212 return self.join(other, "left")
1213
1214 def right_join(self, other):
1215 """

Callers 1

test_left_joinMethod · 0.80

Calls 1

joinMethod · 0.95

Tested by 1

test_left_joinMethod · 0.64