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
Given that DataFrameSchema have good __str__ and __repr__s I'd have thought it would be straightforward to make them hashable, and therefore usable as dictionary keys and in turn cache'able.
As a local hack, I added the following monkey-patch
Describe the bug
DataFrameSchema
is not hashable, and therefore cannot be used by e.g. functools.cacheCode Sample, a copy-pastable example
Expected behavior
Given that
DataFrameSchema
have good__str__
and__repr__
s I'd have thought it would be straightforward to make them hashable, and therefore usable as dictionary keys and in turn cache'able.As a local hack, I added the following monkey-patch
which doesn't seem too terrible?
Desktop (please complete the following information):
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: