1 基本使用方法
seaborn.load_dataset(name, cache=True, data_home=None, **kws)
从在线资源库加载一个示例数据集(需要互联网)。
这个功能提供了对少量例子数据集的快速访问。
2 参数说明
name |
数据集的名称 ({name}.csv on GitHub - mwaskom/seaborn-data: Data repository for seaborn examples) |
cache |
如果是 "真",首先尝试从本地缓存加载,如果需要下载,则保存到缓存。 |
data_home |
缓存数据的目录 |
返回一个Dataframe
3 可用的数据集
load数据集的方式基本相同
数据集名称 |
数据集前五行样子 |
数据集形状 |
anagrams |
 |
(20,5) |
anscombe |
 |
(44, 3) |
attention |
 |
(60, 5) |
brain_networks |
 |
(923, 63) |
car_crashes |
 |
(51, 8) |
diamonds |
 |
(53940, 10) |
dots |
 |
(848, 5) |
exercise |
 |
(90, 6) |
flights |
 |
(144, 3) |
fmri |
 |
(1064, 5) |
gammas |
 |
(6000, 4) |
geyser |
 |
(272, 3) |
iris |
 |
(150, 5) |
mpg |
 |
(398, 9) |
penguins |
 |
(344, 7) |
planets |
 |
(1035, 6) |
taxis |
 |
(6433, 14) |
tips |
 |
(244, 7) |
titanic |
 |
(891, 15) |