Skip to content

Commit

Permalink
barh changed to bar
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePabloGFnl committed Aug 22, 2024
1 parent 70b0c97 commit c9c6bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def boxplot(self):
return self.data[self.x].describe()

def barplot(self):
pd.DataFrame(self.data[self.x].value_counts(normalize=True)).plot.barh()
pd.DataFrame(self.data[self.x].value_counts(normalize=True)).plot.bar()
plt.title("Bar plot of "+x)
plt.show()
return self.data[self.x].describe()

0 comments on commit c9c6bc8

Please sign in to comment.