Python Forum

Full Version: HOw define the colors for two columns?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(Jun-15-2018, 02:17 PM)Jack_Sparrow Wrote: [ -> ]avg_starwars = [blah].color='black'
So the avg_starwars is black? I don't understand.
What in heck is df_star_wars and df_star_trek. Perhaps you should be asking this question on the df_star_wars forum.
(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.