visualize_5_28.py 261 B

1234567
  1. def count_plot(df='dataframe', factor=None, dim=(6, 4)):
  2. # set axis labels to None
  3. _x = None
  4. _y = None
  5. get_factors = df['disease'].value_counts().index
  6. xbar = np.arange(len(get_factors))
  7. get_factors_counts = df['disease'].value_counts()