This is a free dataset of exoplanets from the RDatasets.
The data was obtained from the URLs below of the .csv data file and the .html documentation file, respectively:
It contains 30 observations on the following 3 variables.
In [4]:
import pandas as pd
porsche = pd.read_csv("PorschePrice.csv")
In [5]:
porsche.shape
Out[5]:
In [6]:
porsche.head(5)
Out[6]:
In [7]:
porsche = porsche.rename(columns = {'Unnamed: 0':'Number'})
In [8]:
porsche.head(5)
Out[8]:
In [9]:
porsche.describe()
Out[9]:
In [10]:
import seaborn as sns
import matplotlib.pyplot as plt
In [11]:
sns.pairplot(porsche[["Price", "Age", "Mileage"]])
plt.show()
In [12]:
from pandas.tools.plotting import radviz
plt.figure()
radviz(porsche, 'Age')
plt.show()
In [13]:
plt.figure();
porsche.plot(kind = 'bar', stacked = True);
plt.show()
In [14]:
porsche.plot(kind='barh', stacked=True);
plt.show()
In [15]:
plt.figure();
porsche['Mileage'].diff().hist(bins = 7)
plt.show()
In [30]:
from pandas.tools.plotting import andrews_curves
plt.figure()
andrews_curves(porsche, 'Age', colormap = 'autumn')
plt.show()