Skip to content

claudiofsr/join_with_assignments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

join_with_assignments

This program pairs/aligns two files in CSV format with Polars.

The Kuhn-Munkres algorithm (Munkres Assignments) is used to solve the assignment problem.

Groupby is obtained after the following procedures:

let lf_groupby: LazyFrame = lazyframe
.group_by([col(my_table.side_a.column_aggregation)])
.agg([
    col(my_table.side_a.column_count_lines),
    col(my_table.side_a.column_item_values),
]);

And the values ​​are aggregated with Munkres Assignments.

To see the minimal Munkres Assignments from two sets of numbers, run the test:

git clone https://github.com/claudiofsr/join_with_assignments.git

cd join_with_assignments

cargo test -- --show-output munkres_assignments_example

About

join two csv files with munkres assignments

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE_Apache2.0
BSD-3-Clause
LICENSE_BSD3
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages