I have loaded some stock price data into a dataframe. I want to quickly plot the close price on Y axis, and date on the X axis.
This is what my dataframe looks like:
Open High Low Close Adjusted_close Volume
Date
1980-12-11 22.000 22.000 22.000 22.000 0.0308 0
1980-12-12 28.750 28.876 28.750 28.750 0.0395 2093900
1980-12-15 27.250 27.376 27.250 27.250 0.0375 785200
1980-12-16 25.250 25.376 25.250 25.250 0.0350 472000
1980-12-17 25.876 26.000 25.876 25.876 0.0359 385900
When I type df.plot() it plots something that looksl like a histogram.
When I type df.plot('Close') it plots a bunch of squiggly lines.
I have two questions:
- How do I quickly plot close price versus date
- Assuming I have two other columns ('Buy' and 'Sell') which are boolean flags, in the dataframe, how can I plot the 'Buy' and 'Sell' points using say a green up arrow and a red down arrow on the same plot ?

