Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@srang992
Created October 18, 2022 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srang992/f6e00222b01e549df30e800a38959283 to your computer and use it in GitHub Desktop.
Save srang992/f6e00222b01e549df30e800a38959283 to your computer and use it in GitHub Desktop.
olive_data = chain_data[chain_data['RestaurantName']=='Olive Garden']
taco_data = chain_data[chain_data['RestaurantName']=='Taco Bell']
panda_data = chain_data[chain_data['RestaurantName']=='Panda Express']
olive_states = count_df(olive_data, 'State').head(5)
taco_states = count_df(taco_data, 'State').head(5)
panda_states = count_df(panda_data, 'State').head(5)
titles = ['Olive Garden in States', 'Taco Bell in States', "Panda Express in States"]
fig = multi_donut_charts([olive_states, taco_states, panda_states], 1, 3, ['State', 'State', 'State'],
colors, titles,)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment