Match
tablite.match
Classes
Functions
tablite.match.match(T, other, *criteria, keep_left=None, keep_right=None)
performs inner join where T
matches other
and removes rows that do not match.
:param: T: Table :param: other: Table :param: criteria: Each criteria must be a tuple with value comparisons in the form:
(LEFT, OPERATOR, RIGHT), where operator must be "=="
Example:
('column A', "==", 'column B')
This syntax follows the lookup syntax. See Lookup for details.
:param: keep_left: list of columns to keep. :param: keep_right: list of right columns to keep.
Source code in tablite/match.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
tablite.match.find_indices(x, y, fill_value=-1)
finds index of y in x
Source code in tablite/match.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
tablite.match.merge_indices(x1, *args, fill_value=-1)
merges x1 and x2 where
Source code in tablite/match.py
91 92 93 94 95 96 97 98 99 100 101 102 |
|