in src/rime/__init__.py [0:0]
def get_mtch_(self, k=None, c=None, name="mtch_"):
y = {}
for method, x in getattr(self, name).items():
x = pd.DataFrame(x)
if k is not None and c is not None:
y[method] = x.set_index(['k', 'c']).loc[(k, c)]
elif k is not None:
y[method] = x.set_index(['k', 'c']).loc[k].sort_index().T
elif c is not None:
y[method] = x.set_index(['c', 'k']).loc[c].sort_index().T
else:
raise ValueError("either k or c must be provided")
return pd.concat(y, axis=1) if len(y) else None