You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this already exists hereor somewhere else, but it would be cool If the extract methods could have an extra optional, None by default key parameter, just like the sorted function in python.
Imagine being able to extract most similar elements based on attributes or methods of an object for example:
I don't know if this already exists hereor somewhere else, but it would be cool If the extract methods could have an extra optional, None by default
key
parameter, just like the sorted function in python.Imagine being able to extract most similar elements based on attributes or methods of an object for example:
`
class Sth:
a: str
b: int
process.extractOne(Sth('hi', 1), [Sth('bye', 2), Sth('hi!', 3)], key=lambda x: x.a)
`
The text was updated successfully, but these errors were encountered: