Skip to content

Instantly share code, notes, and snippets.

@quizzicol
quizzicol / Assignment_2.ipynb
Created November 4, 2016 06:31
Authorship attribution of ghost written novels.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quizzicol
quizzicol / NPS sentiment ananlysis.ipynb
Created September 18, 2016 08:39
NPS sentiment analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quizzicol
quizzicol / hide_code_cells.py
Created September 16, 2016 06:52
Jupyter notebook hide code cells
from IPython.display import HTML
HTML('''<script>
function code_toggle() {
if (code_shown){
$('div.input').hide('500');
$('#toggleButton').val('Show Code')
} else {
$('div.input').show('500');
$('#toggleButton').val('Hide Code')
}
@quizzicol
quizzicol / categorical_hist.py
Created September 12, 2016 02:49
Pandas Facetplot histograms for categorical data
# which columns from the data frame to plot
columns_to_plot = df.ix[:, df.columns != 'Customer ID'].columns
# facet plot dimensions
plot_columns = 5
plot_rows =math.ceil(len(columns_to_plot)/plot_columns)
# create figure
fig, ax = plt.subplots(plot_rows, plot_columns, figsize=(15,20))
fig.subplots_adjust(hspace=0.6) # adjust vertical spacing between plots
@quizzicol
quizzicol / README.md
Last active May 27, 2016 02:49
animated_rank
@quizzicol
quizzicol / README.md
Created January 30, 2016 06:56
Multi line chart