import matplotlib.pyplot as plt
import education
list_of_record = education.get_all_states
virginia_education = education.get_state('Virginia')
enrollment = virginia_education ["enrollment"]
students = enrollment ["students"]
race = students ["race"]
asian = race["asian"]
biracial = race["biracial"]
hispanic = race ["hispanic"]
white = race ["white"]
black = race["black"]
native_american = race["native american"]
all_race = [asian, biracial, hispanic, white, black, native_american]
plt.hist (all_race)
plt.show ()
Image of the current histogram:

I want to change him so that he has the names of all races. the numbers on the x and y axis are incorrect, and I'm not sure how to fix this.
Some data:

source
share