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
def interactive_histogram(df,col,n_bins,bin_range,title,x_axis_label,x_tooltip): | |
"""Plot interactive histogram using bokeh. | |
df: pandas dataframe | |
col: column of panda dataframe to plot (eg. age of users) | |
n_bins: number of bins, e.g. 9 | |
bin_range: list with min and max value. e.g. [10,100] age of users. | |
title: title of plot. e.g. 'Airnb Users Age Distribution' | |
x_axis_label: x axis label. e.g. 'Age (years)'. | |
x_tooltip: x axis tooltip string. e.g. 'Age' |
As configured in my dotfiles.
start new:
tmux
start new with session name: