Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
235 B
2
Indexable
Never
midwest = pd.read_csv("https://raw.githubusercontent.com/selva86/datasets/master/midwest_filter.csv")

categories = np.unique(midwest['category'])
colors = [plt.cm.tab10(i/float(len(categories)-1)) for i in range(len(categories))]