text_plain_output_1.png
from warnings import filterwarnings

import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.lines as lines
import matplotlib.gridspec as gridspec
import seaborn as sns
from warnings import filterwarnings
filterwarnings('ignore')
plt.rcParams['font.family'] = 'monospace'

df = pd.read_csv('../input/predict-test-scores-of-students/test_scores.csv')

cmap0 = ['#68595b', '#7098af', '#6f636c', '#907c7b']
cmap1 = ['#484146', '#8da0b3', '#796d72', '#9fa9ba']
cmap2 = ['#545457', '#a79698', '#5284a2', '#bbbcc4']
bg_color = '#fbfbfb'
txt_color = '#5c5c5c'

fig, ax = plt.subplots(tight_layout=True, figsize=(12, 6))
fig.patch.set_facecolor(bg_color)
ax.set_facecolor(bg_color)
mv = df.isna()
ax = sns.heatmap(data=mv, cmap=sns.color_palette(cmap0), cbar=False, ax=ax)
ax.set_ylabel('')
ax.set_yticks([])
ax.set_xticklabels(labels=mv.columns, rotation=45)
ax.tick_params(length=0)
fig.text(s=':Missing Values', x=0, y=1.1, fontsize=17, fontweight='bold', color=txt_color, va='top', ha='left')
fig.text(s="\n    we can't see any ...\n    ", x=0, y=1.075, fontsize=11, fontstyle='italic', color=txt_color, va='top', ha='left')
plt.show()