csv文件帶有路徑的話不能直接調用read_csv()函數
import pandas as pd
pd.read_csv(F:\hand on machine learning with scikit learn and tensorflow\housing.csv)
將發生錯誤
正確形式是先調用open()函數,再調用read_csv()函數
import pandas as pd
pd.read_csv(open("F:\hand on machine learning with scikit learn and tensorflow\housing.csv"))
注意:路徑和文件名作為字符串要用引號包含。