An open API service indexing awesome lists of open source software.

https://github.com/dedupeio/categorical-distance

:triangular_ruler: Compare categorical variables
https://github.com/dedupeio/categorical-distance

Last synced: 3 months ago
JSON representation

:triangular_ruler: Compare categorical variables

Awesome Lists containing this project

README

          

categorical-distance
====================

Compare categorical variables

Part of the [Dedupe.io](https://dedupe.io/) cloud service and open source toolset for de-duplicating and finding fuzzy matches in your data.

```python
>>> import categorical
>>> categories = ('a', 'b')
>>> comparator = categorical.CategoricalComparator(categories)
>>> comparator('a', 'a')
[ 0. 0.]
>>> comparator('b', 'b')
[ 1. 0.]
>>> comparator('a', 'b')
[ 0. 1.]
>>> comparator('b', 'a')
[ 0. 1.]
```