Last active
March 11, 2019 04:47
-
-
Save noklam/ddd503085c5aa0c27ddb0eceb4a2f07b to your computer and use it in GitHub Desktop.
demo of ipywidgets and seaborn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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