• home
  • about
  • 全ての投稿
  • ソフトウェア・ハードウェアの設定のまとめ
  • 分析関連のまとめ
  • ヘルスケア関連のまとめ
  • 生涯学習関連のまとめ

seaborn dataset

date: 2024-01-06 excerpt: seaborn datasetの使い方

tag: seaborndatasetpython


seaborn datasetの使い方

概要

  • seabornには簡単に使えるデータセットが用意されている
  • toy datasetとして使える

使用

データセットの一覧を表示

import seaborn as sns
sns.get_dataset_names()
"""
['anagrams',
 'anscombe',
 'attention',
 'brain_networks',
 'car_crashes',
 'diamonds',
 'dots',
 'dowjones',
 'exercise',
 'flights',
 'fmri',
 'geyser',
 'glue',
 'healthexp',
 'iris',
 'mpg',
 'penguins',
 'planets',
 'seaice',
 'taxis',
 'tips',
 'titanic']
"""

データセットの読み込み

import seaborn as sns
titanic = sns.load_dataset("titanic")

参考

  • seaborn-data


seaborndatasetpython Share Tweet