In [1]:
# Import modules that contain functions we need
import pandas as pd
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
In [2]:
data = pd.read_csv("./exoplanets-2.csv")
In [3]:
# list first 3 rows in table
data.head(3)
Out[3]:
In [14]:
# make a histogram of a column
plt.hist(data.MASS, bins=20, range=[0,100]);
plt.title("title")
plt.xlabel("label")
plt.ylabel("label")
Out[14]:
In [16]:
# scatterplot
plt.scatter(data.R,data.RSTAR)
plt.title('title')
plt.xlabel('label')
plt.ylabel('label')
plt.show()
For more ideas, see the notebooks at the GitHub.
In [ ]: