We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am referring to this code as NumPy array no longer have method where, and you get error
c = c.where((c < self.threshold) | (pandas.isnull(c)), other=1.0) AttributeError: 'numpy.ndarray' object has no attribute "where"
if self.threshold is not None: c = c.where((c < self.threshold) | (pandas.isnull(c)), other=1.0) c = c.where((c >= self.threshold) | (pandas.isnull(c)), other=0.0)
in https://github.com/J535D165/recordlinkage/blob/5b3230f5cff92ef58968eedc451735e972035793/recordlinkage/compare.py#L152
https://github.com/J535D165/recordlinkage/blob/5b3230f5cff92ef58968eedc451735e972035793/recordlinkage/compare.py#L152
much cleaner solution would to just use this instead this
if self.threshold is not None: c = c >= self.threshold c= c.astype(float)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am referring to this code as NumPy array no longer have method where, and you get error
in
https://github.com/J535D165/recordlinkage/blob/5b3230f5cff92ef58968eedc451735e972035793/recordlinkage/compare.py#L152
much cleaner solution would to just use this instead this
The text was updated successfully, but these errors were encountered: