【机器学习】Pandas读取存在Github上的数据集

这种:

import pandas as pd
oecd_bli = pd.read_csv("https://github.com/ageron/handson-ml/blob/master/datasets/lifesat/oecd_bli_2015.csv", thousands=',')

是有问题的,数据集的在线连接应该用下面这个:

https://raw.githubusercontent.com/ageron/handson-ml/master/datasets/lifesat/oecd_bli_2015.csv

所以改成:

import pandas as pd
oecd_bli = pd.read_csv("ttps://raw.githubusercontent.com/ageron/handson-ml/master/datasets/lifesat/oecd_bli_2015.csv", thousands=',')

即可。

END.

你可能感兴趣的:(Machine,Learning)