HOw define the colors for two columns? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: HOw define the colors for two columns? (/thread-10967.html) |
HOw define the colors for two columns? - Jack_Sparrow - Jun-15-2018 Hi there, I am trying to define some colors for two dimensions. this is my code, where I defined the colors. #what is the vote avarage for Star Wars and Star Treck? avg_starwars = df_star_wars ['vote_average'].hist(figsize = (8,8)).color='black' avg_startrek = df_star_trek ['vote_average'].hist(figsize = (8,8)).color = 'red'But the code doesn't work.... Well the bar chart is appears, but the colors are not defined RE: HOw define the colors for two columns? - nilamo - Jun-15-2018 (Jun-15-2018, 02:17 PM)Jack_Sparrow Wrote: avg_starwars = [blah].color='black'So the avg_starwars is black ? I don't understand.
RE: HOw define the colors for two columns? - woooee - Jun-15-2018 What in heck is df_star_wars and df_star_trek. Perhaps you should be asking this question on the df_star_wars forum. RE: HOw define the colors for two columns? - snippsat - Jun-15-2018 (Jun-15-2018, 03:58 PM)woooee Wrote: What in heck is df_star_wars and df_star_trek. Perhaps you should be asking this question on the df_star_wars forum.It's a Pandas DataFrame i have warned @Jack_Sparrow before about this. If you not give more info in your post @Jack_Sparrow,they will be delete in the future. |