Home > Software engineering >  how to plot a stock price chart? Why is my result so different from the right one
how to plot a stock price chart? Why is my result so different from the right one

Time:02-22

this is my code.

import numpy as np
from matplotlib import pyplot as plt
import pandas as pd

data1 = pd.read_csv("data.csv",delimiter=",")
%matplotlib inline
plt.plot(data1["date"],data1["close"])
plt.show()

this is data looks like.enter image description here

  • Related