Seaborn 0.11.2 has a problem with lineplot

Will raise:

ValueError: cannot reindex from a duplicate axis

Eg. in Ch 7, 05

ax = sns.lineplot(x='alpha',
                  y='ic',
                  data=ridge_scores,
                  estimator=np.mean,
                  label='Mean',
                  ax=axes[0])

Use conda install seaborn==0.11.1 downgrade to 0.11.1 solve the problem

See

or