text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

portugese_student = pd.read_csv('/kaggle/input/student-alcohol-consumption/student-por.csv')

mat_student = pd.read_csv('/kaggle/input/student-alcohol-consumption/student-mat.csv')

data = pd.concat([portugese_student, mat_student], axis=0)

data.shape

data.duplicated().sum()

data.isnull().sum()

data.nunique()

keys = ['F', 'M']

sns.countplot(x='age', hue='sex', data=data)
plt.show()