How to display available datasets in Seaborn

You can display available datasets in Seaborn with the following code. I highly recommend you “Python Crash Course Book” to learn Python.

# Import the seaborn library as sns
import seaborn as sns

# Display available datasets
sns.get_dataset_names()

Output:

['anagrams',
 'anscombe',
 'attention',
 'brain_networks',
 'car_crashes',
 'diamonds',
 'dots',
 'exercise',
 'flights',
 'fmri',
 'gammas',
 'geyser',
 'iris',
 'mpg',
 'penguins',
 'planets',
 'taxis',
 'tips',
 'titanic']

Leave a Comment

Your email address will not be published.