In [1]:
import pandas as pd
planets = pd.read_csv("planets.csv")
In [8]:
planets.head(3)
Out[8]:
In [14]:
planets = planets.rename(columns = {'Unnamed: 0':'Number'})
planets.shape
Out[14]:
In [19]:
planets.describe()
Out[19]:
In [70]:
p25 = planets.sample(n=25)
p25 = p25.drop('Number', 1)
p25
Out[70]:
In [55]:
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import kendalltau
import seaborn as sns
sns.set(style="ticks")
sns.jointplot(planets.period, planets.eccen, kind="hex", stat_func=kendalltau, color="blue")
plt.show()
In [62]:
sns.kdeplot(planets.period, planets.eccen)
plt.show()
In [72]:
sns.lmplot('mass', 'eccen', data=planets, fit_reg=False)
plt.show()