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 numpy as np | |
import seaborn as sns | |
import pylab as plt | |
def plot_all_cat_distributions(dataframe, figsize = (20,40)): | |
""" Plot every single category frequency distribution in the same cell""" | |
max_shape = np.ceil(dataframe.shape[1] / 2) | |
fig = plt.figure(figsize=figsize) | |
for i, col in enumerate(dataframe.columns): | |
plt.subplot(max_shape, 2, i+1) |
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
#!/bin/bash | |
POSITIONAL=() | |
while [[ $# -gt 0 ]] | |
do | |
key="$1" | |
case $key in | |
-n|--name) | |
Name="$2" |
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
# coding: utf-8 | |
import numpy as np | |
import pandas as pd | |
import pickle | |
from scipy import misc | |
from tqdm import tqdm | |
def unpickle(file): |