text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import matplotlib.patches as mpatches
sns.set_style(style='whitegrid')

data = pd.read_csv('/kaggle/input/kaggle-survey-2020/kaggle_survey_2020_responses.csv', low_memory=False)
data.columns = data.iloc[0]
data.drop(data.index[0], inplace=True)

questions = list(data.columns)
question_df = pd.DataFrame(data.columns, columns=['questions'])

age_groups = data[data.columns[1]].value_counts().sort_index()
sns.barplot(age_groups, age_groups.index)
mill = age_groups['22-24'] + age_groups['25-29']
mill_percentage = mill / age_groups.sum() * 100
print(f'Millennials in the DS community : {mill}')
print(f'% of Millennials in the DS community : {mill_percentage}')
plt.show()