Commit a83a4c08 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweak

parent ba122dd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ def override_common_keys(d1: dict, d2: dict) -> dict:

def extract_basis_table(dlist: list[dict], basis_keys: tuple) -> table.Table:
    """Extract basis key-value pairs from a list of dictionaries."""
    return table.Table([{k: d.get(k, default="") for k in basis_keys} for d in dlist])
    return table.Table([{k: d.get(k, "") for k in basis_keys} for d in dlist])


def split_data_basis(data_basis: table.Table, n_split: int = 1) -> list[table.Table]: