Shown below is the syntax used to get the bar char for a categorical data on seaborn
import seaborn as sn
import matplotlib as mpl
import matplotlib.pyplot as plt
IN: data['coast'].dtypes
OUT:
CategoricalDtype(categories=[0, 1], ordered=False)
IN: data['coast'].value_counts()
OUT:
0 21450
1 163
Name: coast, dtype: int64
IN: sn.factorplot('coast', data=data, kind='count')
OUT: