load_dataset
from the seaborn package
As illustrated in several lectures, the seaborn package provides quick access to a small number of datasets for quick illustration or prototyping.
The list of datasets can be seen at https://github.com/mwaskom/seaborn-data
import seaborn as sns
df = sns.load_dataset('planets')
df.head()
0 |
Radial Velocity |
1 |
269.300 |
7.10 |
77.40 |
2006 |
1 |
Radial Velocity |
1 |
874.774 |
2.21 |
56.95 |
2008 |
2 |
Radial Velocity |
1 |
763.000 |
2.60 |
19.84 |
2011 |
3 |
Radial Velocity |
1 |
326.030 |
19.40 |
110.62 |
2007 |
4 |
Radial Velocity |
1 |
516.220 |
10.50 |
119.47 |
2009 |