So today, I started with time-series data using Python. First, I tried reading the time series data from a CSV file by using the panda library pd
Unfortunately, I keep getting this error? Any help on this would be highly appreciated.
PS: I am using Python 3.73
address = 'C:/Users/Anih John/Desktop/Python-workstation/ff/Superstore-Sales.csv'
Superstore = pd.read_csv(address, index_col='Order Date',parse_dates=True)
print(Superstore)
Then I get the following error:
Unable to open 'parsers.pyx': Unable to read file (Error: File not found (c:\users\anih john\desktop\python-workstation\ff\pandas\_libs\parsers.pyx)).
I would try with the following commands:
import pandas as pd
address = 'C:\\Users\\Anih John\\Desktop\\Python-workstation\\ff\\Superstore-Sales.csv'
Superstore = pd.read_csv(address, index_col='Order Date',parse_dates=True, engine='python',sep=',')
print(Superstore)
EDIT: Or simply using the file in the read_csv function.
import pandas as pd
Superstore = pd.read_csv('C:\\Users\\Anih John\\Desktop\\Python-workstation\\ff\\Superstore-Sales.csv', index_col='Order Date',parse_dates=True, engine='python',sep=',')
print(Superstore)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.