https://app.dataquest.io/m/468/business-metrics/5/analyzing-nps
I am getting an attribute error when i run the code locally in jupyter
so i tried to import matplotlib but stil get an error
import matplotlib.pyplot as plt
ax = nps.reset_index().plot(kind="line", x="yearmonth",y="nps",
figsize=(12,6), legend=False
)
ax.set_xticks(nps.index)
ax.set_xticklabels(nps.index, rotation=45)
ax.axes.get_xaxis().set_label_text("")