1import pandas as pd
2import matplotlib.pyplot as plt
3import seaborn as sns
4
5
6d = {'group': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
7 'y': [100, 200, 300, 400, 500, 650, 780, 810, 932, 1050],
8 'flag': [1503, 601, 348, 193, 161, 197, 322, 237, 85, 38]}
9df = pd.DataFrame(d)
10g = sns.lineplot(x = 'group', y = 'y', marker='.', data = df).set_title('Example Graph')
11
12# add labels here
13for v in df.iterrows():
14 plt.text(v[1][0], v[1][1], f'{v[1][2]}')
15