一、问题描述
错误写法:
pd.read_csv('I:\machine_learn\example_\products.csv')
"""
FileNotFoundError: [Errno 2] File b'products.csv' does not exist: b'products.csv'
...
"""
一、问题解决
1、第一种写法
pd.read_csv(r'I:\machine_learn\example_\products.csv')
2、第二种写法
pd.read_csv('I:/machine_learn/example_/products.csv')
3、第三种写法
pd.read_csv('I:\\machine_learn\\example_\\products.csv')