Tamara
Tamara
Additions: - optimisation to the runtime of the match function, to avoid sorting on every iteration over the `test_scores`. Instead, the `ctrl_scores` variable is sorted once, optimising the search for...
``` def chi2_distance(t, c): tb, cb, bins = which_bin_hist(t, c) tb, cb = bin_hist(tb, cb, bins) return _chi2_distance(tb,cb) ``` Instead of failing, I would suggest ending gracefully but lifting a...
The issue can be reproduced as follows: ``` import pandas as pd df = pd.DataFrame([ [1, 'DE', 2.3], [2, 'BE', 4.5], [3, 'DE', 7.6], [4, 'DE', 4.8] ], columns=['id', 'country',...