Question: plot categorical variable on x axis and integer on y axis?
0
gravatar for ahtmatrix
2.6 years ago by
ahtmatrix0
ahtmatrix0 wrote:

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?

plot pandas python • 1.3k views
ADD COMMENTlink modified 2.6 years ago • written 2.6 years ago by ahtmatrix0
0
gravatar for ahtmatrix
2.6 years ago by
ahtmatrix0
ahtmatrix0 wrote:
df1 = TIS_dist_df[['stringed_seq','sums']]

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

plt.show()
ADD COMMENTlink written 2.6 years ago by ahtmatrix0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1776 users visited in the last hour