image_output_1.png
import pandas as pd

df = pd.read_csv('../input/tabular-playground-series-mar-2022/train.csv')

df['xy'] = list(zip(df['x'], df['y']))
df['xydir'] = list(zip(df['x'], df['y'], df['direction']))
df['xy'].unique()