【发布时间】:2020-02-09 13:23:30
【问题描述】:
为什么我无法在我的 Mac 上读取 CSV 文件?
import pandas as pd
csv = pd.read_csv('new_weather.csv')
csv
它给了我错误
[Errno 2] File b'new_weather.csv' does not exist: b'new_weather.csv'
【问题讨论】:
-
可能文件在不同的文件夹中?尝试完整路径
pd.read_csv('/full/path/to/new_weather.csv')
标签: python pandas csv jupyter-notebook anaconda