Skip to content

Instantly share code, notes, and snippets.

@noklam
Last active March 11, 2019 04:47
Show Gist options
  • Save noklam/ddd503085c5aa0c27ddb0eceb4a2f07b to your computer and use it in GitHub Desktop.
Save noklam/ddd503085c5aa0c27ddb0eceb4a2f07b to your computer and use it in GitHub Desktop.
demo of ipywidgets and seaborn
import seaborn as sns
import ipywidgets
@ipywidgets.interact
def plot(color=['red','steelblue']):
(sns.barplot(y='hospNameEn',
x='topWaitTime',
data=df_mean,
orient='h',
color=color)
.set_title('Average waiting Time of Accident & Emergency waiting Time in HK Hospital'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment