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
In the codebase we often have to be careful when looking at the equality of two columns to ensure we're not comparing quoted to unquoted
I wondered whether it may be possible/sensible to define a eq on the class that defines equality of the column name irrespective of whether it's quoted or unquoted.
Need to check how this would work out for the in operator e.g. if this_input_col in input_cols_list then do something i think for that you might need to define __hash__
The text was updated successfully, but these errors were encountered:
I think in for lists use __eq__ under the hood, so should work okay with just that. Would need __hash__ for sets/dicts, but presumably we don't have any such cases currently as it's not already hashable.
In the codebase we often have to be careful when looking at the equality of two columns to ensure we're not comparing quoted to unquoted
I wondered whether it may be possible/sensible to define a eq on the class that defines equality of the column name irrespective of whether it's quoted or unquoted.
Need to check how this would work out for the in operator e.g.
if this_input_col in input_cols_list then do something
i think for that you might need to define__hash__
The text was updated successfully, but these errors were encountered: