plt.figure(figsize=(14, 7)) plt.plot(data.index, data['Close'], label='Close Price') plt.plot(data.index, data['30_day_MA'], label='30 Day MA', linestyle='--') plt.xlabel('Date') plt.ylabel('Price') plt.title('Close Price and 30 Day Moving Average') plt.legend() plt.show()