text_html_output_1.png
import pandas as pd

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

for i in df['xy'].unique():
    print(i, ':', df.loc[df['xy'] == i, 'direction'].unique())