Planets and exoplanets data

An exoplanet is simply a planet that orbits a star outside of our solar system, so from here on out we will refer to both collectively as planets. Let's read in our planets data now:

>>> planets = pd.read_csv('data/planets.csv')

Some interesting tasks we can do with this data would be to find clusters of similar planets based on their orbits and try to predict how long a year is on a planet, in Earth days. This is called the orbit period:

period name eccentricity description discoverymethod periastrontime lastupdate semimajoraxis mass periastron list discoveryyear
0 326.03 11 Com b 0.231 11 Com b is a brown dwarf-mass companion to th... RV 2452899.60 15/09/20 1.290 19.400 94.800 Confirmed planets 2008.0 ...

Get Hands-On Data Analysis with Pandas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.