Skip to content

Commit

Permalink
added encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
TakaakiFuruse committed Apr 5, 2018
1 parent 491c30b commit e8997ea
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -160,7 +160,7 @@
],
"source": [
"url = 'https://raw.githubusercontent.com/guipsamora/pandas_exercises/master/07_Visualization/Online_Retail/Online_Retail.csv'\n",
"online_rt = pd.read_csv(url)\n",
"online_rt = pd.read_csv(url, encoding='shift-jis')\n",
"\n",
"online_rt.head()"
]
Expand Down

1 comment on commit e8997ea

@TakaakiFuruse
Copy link
Contributor Author

@TakaakiFuruse TakaakiFuruse commented on e8997ea Apr 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why, but it looks the CSV is encoded in Shift-JIS. I got encoding error.
(This is weird. Shift-JIS is mostly used in Asian language files like mine, Japanese. Normally, English files are UTF-8....)

Please sign in to comment.