I have a dataframe that has rownames of country, colnames of programming language and values showing the count respectively generated my pandas crosstab operation.
EG
Language C C++ Java Python Perl
Country
USA 3222 343 2112 10110 89
France 5432 323 1019 678 789
Japan 7878 467 767 8788 40
I have tried using gca function and projection 3d. I also tried this but couldnt get it to work.
threedee = plt.figure().gca(projection='3d') <br/>
threedee.bar(repo_lang, repo_loc, repo_values) <br/>
threedee.set_xlabel('Index')<br/>
threedee.set_ylabel('H-L')<br/>
threedee.set_zlabel('Close')<br/>
plt.show()
I want to display a 3D bar chart where two axis could be country name and language and the other their count.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…