image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

df = pd.read_csv('../input/30days-folds/train_folds.csv')
train = df
df_test = pd.read_csv('../input/30-days-of-ml/test.csv')
sample_submission = pd.read_csv('../input/30-days-of-ml/sample_submission.csv')

# Comparing the datasets length
fig, ax = plt.subplots(figsize=(5, 5))
pie = ax.pie([len(df), len(df_test)],
             labels=["Train dataset", "Test dataset"],
             colors=["salmon", "teal"],
             textprops={"fontsize": 15},
             autopct='%1.1f%%')
ax.axis("equal")
ax.set_title("Dataset length comparison", fontsize=18)
fig.set_facecolor('white')
plt.show();

df.describe(percentiles=[0.1, 0.25, 0.5, 0.75, 0.9]).T

fig, ax = plt.subplots(figsize=(16, 8))
bars = ax.hist(df['target'], bins=100, color='palevioletred', edgecolor='black')
ax.set_title('Target distribution', fontsize=20, pad=15)
ax.set_ylabel('Amount of values', fontsize=14, labelpad=15)
ax.set_xlabel('Target value', fontsize=14, labelpad=10)
ax.margins(0.025, 0.12)
ax.grid(axis='y')
plt.show()