Plot two columns in Python pandas

"""Plot High prices for ITC"""

import pandas as pd
import matplotlib.pyplot as plt

def test_run():
    df = pd.read_csv("data/ITC.csv")
    df[['Close', 'Adj Close']].plot()
    plt.show()  # must be called to show plots


if __name__ == "__main__":
    test_run()
(Visited 41 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
27 ⁄ 3 =