UnicodeEncodeError:“ mbcs”编解码器无法编码位置0--1中的字符:无效字符

时间:2019-06-21 13:43:14

标签: read.csv

当我尝试读取从中下载的csv文件时 http://insideairbnb.com/get-the-data.html我收到以下错误

{
    "name": "Charley Rivers",
    "category": "Rivers",
    "city": "Eaking",
    "state": "Alaska",
    "id": 1007,
    "isFeatured": true,
    "isFavorite": false,
    "park": "Charley Rivers National Preserve",
    "coordinates": {
        "longitude": -143.122586,
        "latitude": 65.350021
    },
    "imageName": "charleyrivers",  // <- changed from yukon_charleyrivers
}

UnicodeEncodeError追溯(最近一次通话)     在     ----> 1个列表= pd.read_csv('‪F:\ US Docs \ DataScience \ listings.csv')     2条评论= pd.read_csv('‪F:\ US Docs \ DataScience \ reviews.csv')

listings = pd.read_csv('‪F:\\US Docs\\DataScience\\listings.csv')
reviews = pd.read_csv('‪F:\\US Docs\\DataScience\\reviews.csv')

0 个答案:

没有答案