text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

data = pd.read_csv('../input/kaggle-survey-2020/kaggle_survey_2020_responses.csv')

data.shape

question = data.iloc[0, :]
data = data.iloc[1:, :]

fig,ax=plt.subplots(1,1,figsize=(8,5),dpi=200)

dataQ1=data['Q1'].value_counts().sort_index()

ax.bar(dataQ1.index,dataQ1)
plt.show()

dataQ2 = data['Q2'].apply(lambda x: 'x' if x not in ['Man', 'Woman'] else x)
fig, ax = plt.subplots(1, 1, figsize=(8, 5), dpi=200)
dataQ2 = dataQ2.loc[dataQ2 != 'x'].value_counts()
ax.bar(dataQ2.index, dataQ2)
plt.show()