superexacttestpy.tl.intersect_elements
- superexacttestpy.tl.intersect_elements(x)
Create a dataframe with the barcode for all the possible intersections
- Parameters:
- x : list
List of sets
- Returns:
A dataframe with the entry and the barcode as columns and rows
- Return type:
pd.DataFrame
Example
>>> data = [["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q"], ["L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"], ["H","I","J","K","L","M","N","O","P","Q"]] >>> intersect_elements(data).head() ... | | entry | barcode | ... |---:|:--------|----------:| ... | 0 | Y | 010 | ... | 1 | C | 100 | ... | 2 | J | 101 | ... | 3 | V | 010 | ... | 4 | S | 010 |