我无法将数据集导入Python(2.7)。我同时尝试了xlsx和csv文件,但它告诉我该文件不存在。我是Python新手,请多多包涵。
代码:
# importing Librarie
%matplotlib inline
from copy import deepcopy
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
plt.rcParams['figure.figsize'] = (16, 9)
plt.style.use('ggplot')
#Iporting Dataset
data = pd.read_csv('C:\Users\bdbd\Desktop\DataMLTutorial2.csv')
print(data.shape)
data.head()
然后Python告诉我,即使文件恰好放置在桌面上的该位置,该文件也不存在