I need help with something easy that I can't make it work (I'm a beginner). I have a dataframe and want to plot a simple chart: the x-axis should display periods and the y-axis should display sales. Now I want the chart to show only a specific range of years, not all of them.
So far I've tried the following:
df.plot(x="Period", y="Quantity", kind="line")
But I don't know how to narrow it down to specific values within that column, e.g. x="Period"
should be greater than 2018?