This is a test version of Biostars. For the public version, visit https://www.biostars.org.
plot categorical variable on x axis and integer on y axis?

I have a pandas DataFrame here:

enter image description here

Is there a way to plot a barchart stringed_seq on the x axis and sums and on the y axis, without discarding sums that are 0?

python plot pandas

1 answer

df1 = TIS_dist_df[['stringed_seq','sums']]

df1[0:10].plot.barh()

plt.show()

Log in to answer this question.