May-24-2019, 08:40 PM
Hi,
I have just completed my python with finance coding, but unfortunately, there is an error. I tried so many times to solve the issue, hope you will help me. thanks a lot
I have just completed my python with finance coding, but unfortunately, there is an error. I tried so many times to solve the issue, hope you will help me. thanks a lot
import pandas as pd import matplotlib.pyplot as plt import numpy as np Data = pd.read_csv('C:/DATA.csv', parse_dates=['Date'], dayfirst=True, index_col=['Date']) Date = Data.index
Error:Data = pd.read_csv('C:/DATA.csv', parse_dates=['Date'], dayfirst=True, index_col=['Date'])
Date = Data.index
Traceback (most recent call last):
File "<ipython-input-1-a51606cd14f8>", line 1, in <module>
Data = pd.read_csv('C:/DATA.csv', parse_dates=['Date'], dayfirst=True, index_col=['Date'])
NameError: name 'pd' is not defined