image_output_2.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df1 = pd.read_csv('../input/train.csv')
df2 = pd.read_csv('../input/test.csv')

df12 = df1.fillna(df1.mean())

plt.hist(df12.Fare)
sns.rugplot(df12.Fare, alpha=0.3)
plt.show()