image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd                               # Data processing, CSV file I/O (e.g. pd.read_csv)

krenth311 = pd.read_csv('../input/dataset/krenth311.csv')
krenth316 = pd.read_csv('../input/dataset/krenth316.csv')
merge = pd.concat([krenth311, krenth316])
merge.to_csv('merge.csv', index=False)

for col in ['aloneorinagroup']:
    krenth311[col].value_counts(ascending=True).plot(kind='barh', title=col)
    plt.xlabel('frequency')
    plt.show()