The plotting function used in the video is shown below.
import altair as alt
def plot_bigmac(dataf):
return (alt.Chart(dataf)
.mark_point()
.encode(x='local_inflation',
y='dollar_inflation',
color=alt.Color('currency_code'),
tooltip=["currency_code", "local_inflation", "dollar_inflation"])
.properties(width=600, height=150)
.interactive())
We're using the altair library here. We also have a series of videos available for this altair.