1
我宣佈PD如下:PD不承認,雖然宣稱
# import our packages
import pandas as pd
%matplotlib inline
到目前爲止好,但後來當我跑這條線(或我最好滾動到下一個單元格用Shift + Enter)
myExploratoryData=pd.read_csv("~/Downloads/Ex_Files_Data_Science_Of_Marketing/02_03/exploratory-py.cvs")
我得到這個錯誤。我試圖重置並重新啓動,如同在類似的stackoverflow文章中指出的,但不起作用。我沒有得到我定義/導入'pd'。我在Anaconda和Jupyter的linux上運行python 3
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-e1875e3c3f52> in <module>()
1 # connect to our data
----> 2 myExploratoryData=pd.read_csv("~/Downloads/Ex_Files_Data_Science_Of_Marketing/02_03/exploratory-py.cvs")
NameError: name 'pd' is not defined
感謝接受,可惜不能給予好評你,因爲我沒有足夠的聲譽 – Drocchio