def plot_bins(self, attr):
"""
Plot barplot of binned values.
Input: attr (str) the attribute to use when plotting
Output: plot object
"""
sns.barplot(range(len(getattr(self, attr))), getattr(self, attr))
plt.xlabel(attr)
plt.show()
评论列表
文章目录