Preview:
# Create dataframe containing target for plotting
df_train = X_train.copy()
df_train['target'] = y_train

fig, axes = plt.subplots(2, 5, constrained_layout=True, figsize=(10, 4))
for col, ax in zip(X.columns, axes.ravel()):
    df_train.plot(x=col, y='target', kind='scatter', ax=ax, legend=False, s=2, alpha=.6)
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter