Comments (3)
Hello dserban,
Thanks for your feedback and sorry for this bug. I found the solution and will push an update tomorrow.
from recordlinkage.
The bug is solved in version 0.4.0 (install with pip install recordlinkage
)
Two things about your example:
- When you are using Python 2.x, the strings need to be unicode.
compare.fuzzy
is nowcompare.string
. (both work btw)
from pandas import DataFrame as DF
import jellyfish
import recordlinkage
names = \
[ {'name': u'Daniel'}
, {'name': u'Danieel'}
, {'name': u'Daaniel'}
, {'name': u'Daniiel'}
, {'name': u'Alex'}
, {'name': u'George'}
, {'name': u'Laura'}
, {'name': u'Mary'}
]
names_df = DF(names)
names_df.index.name = 'aaa'
ps = recordlinkage.Pairs(names_df)
pairs = ps.full()
compare_cl = recordlinkage.Compare(pairs, names_df, names_df)
print compare_cl.string('name', 'name', method='jarowinkler', threshold=0.85)
from recordlinkage.
Hi All,
i encountered the same problem using Python 3.7 and recordlinkage 0.14 . Your advice would be highly appreciated
below is the detail of the error message
ValueError Traceback (most recent call last)
in
----> 1 compare = rl.Compare(candidate_links, bib, grid)
~\AppData\Local\Continuum\anaconda3\lib\site-packages\recordlinkage\base.py in init(self, features, n_jobs, indexing_type, **kwargs)
540
541 # public
--> 542 if n_jobs == -1:
543 self.n_jobs = cpu_count()
544 else:
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\generic.py in nonzero(self)
1476 raise ValueError("The truth value of a {0} is ambiguous. "
1477 "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
-> 1478 .format(self.class.name))
1479
1480 bool = nonzero
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
from recordlinkage.
Related Issues (20)
- threshold in at compere is broken
- missing values HOT 4
- compare.date
- What languages are supported by this toolkit? only English?
- optimize Performance ?
- fastparquet 0.8.1: writing dataframe to parquet file from a table data field with rtf doc content falls with TypeError exception
- Data Corruptors a la GeCO
- AttributeError: module 'recordlinkage' has no attribute 'SortedNeighbourhoodIndex' HOT 1
- How to utilize prob-related methods of ECM classifier
- Support for pandas datatypes
- missing value is not working and it is default to 0 even if we change the value. HOT 1
- Possible bug with _dedup_index when df has only 1 row.
- For when support for packages like Dask or Ray (or Modin)?
- Candidate pairs issue
- Indexing - performance warning - full index can result in a large number of pairs HOT 3
- `ECMClassifier` returns almost all candidate pairs HOT 2
- Address Matching Conditional on value of another column HOT 1
- Duplicated matching columns with rl_comparer.compute while looping over zip code HOT 2
- automatically check how many components are defined in rl.Compare()
- Length mismatch at
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recordlinkage.