Created
July 13, 2021 11:47
-
-
Save hsteinshiromoto/8a3b2c1def82784b49804ae2d960937b to your computer and use it in GitHub Desktop.
Plotting binarized bars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig, ax = plt.subplots() | |
ax = sns.barplot(x=df.index, y=df["Column"]) | |
ax.set_xlabel("X Label") | |
x = list(df["Bins"].astype(str).values) | |
x[-1] = f'{df["Bins"].max().left}+' | |
plt.xticks(df.index, x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment