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

tweak

parent ba122dd1
...@@ -116,7 +116,7 @@ def override_common_keys(d1: dict, d2: dict) -> dict: ...@@ -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: def extract_basis_table(dlist: list[dict], basis_keys: tuple) -> table.Table:
"""Extract basis key-value pairs from a list of dictionaries.""" """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]: def split_data_basis(data_basis: table.Table, n_split: int = 1) -> list[table.Table]:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment