plot categorical variable on x axis and integer on y axis?
1
0
Entering edit mode
4.0 years ago
ahtmatrix • 0

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.7k views
ADD COMMENT
0
Entering edit mode
4.0 years ago
ahtmatrix • 0
df1 = TIS_dist_df[['stringed_seq','sums']]

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

plt.show()
ADD COMMENT

Login before adding your answer.

Traffic: 2460 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6