Skip to content

Instantly share code, notes, and snippets.

@hsteinshiromoto
Created July 13, 2021 11:47
Show Gist options
  • Save hsteinshiromoto/8a3b2c1def82784b49804ae2d960937b to your computer and use it in GitHub Desktop.
Save hsteinshiromoto/8a3b2c1def82784b49804ae2d960937b to your computer and use it in GitHub Desktop.
Plotting binarized bars
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