# use library pydatset to get data
from pydataset import data
# check datasets are avaible in this library
print(data()[0:5])
# check how many datsets
print("\n\n","There are %s" %len(data()), "datasets in pydataset library")
# Check cars and iris dataset in list of datasets
list_data = data().dataset_id
data()[list_data.isin(["iris","cars"])]
# access data
titanic = data('titanic')
titanic.head(5)