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
# We start with creating two tables:
left = Table()
left.add_column('number', int, allow_empty=True, data=[1, 2, 3, 4, None])
left.add_column('color', str, data=['black', 'blue', 'white', 'white', 'blue']) # US english color.
right = Table()
right.add_column('letter', str, allow_empty=True, data=['a', 'b,', 'c', 'd', None])
right.add_column('colour', str, data=['blue', 'white', 'orange', 'white', 'blue']) # Queens english.
# Now this wont work:
left_join = left.left_join(right, keys=['colour'], columns=['number', 'letter'])
# Because keys need to match `colour` with `color`
A possible fix could be a list containing a tuple of keys where index 0 indicates the left column and index 1 indicates the right.
The text was updated successfully, but these errors were encountered:
From the readme
A possible fix could be a list containing a tuple of keys where index 0 indicates the left column and index 1 indicates the right.
The text was updated successfully, but these errors were encountered: