Python Forum
HOw define the colors for two columns?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOw define the colors for two columns?
#1
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
Reply
#2
(Jun-15-2018, 02:17 PM)Jack_Sparrow Wrote: avg_starwars = [blah].color='black'
So the avg_starwars is black? I don't understand.
Reply
#3
What in heck is df_star_wars and df_star_trek. Perhaps you should be asking this question on the df_star_wars forum.
Reply
#4
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  List of colors adamG 1 2,124 Apr-08-2019, 06:45 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020