Skip to content

Instantly share code, notes, and snippets.

View albertorb's full-sized avatar
🎯
Focusing

Alberto Rincón albertorb

🎯
Focusing
View GitHub Profile
@albertorb
albertorb / plot_all_cats.py
Created June 17, 2019 09:39
Plot all categoricals within the same cell with seaborn's countplot.
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)
@albertorb
albertorb / create_desktop_webapp.sh
Last active May 16, 2019 09:17
Nativefier directly to launcher shortcut
#!/bin/bash
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-n|--name)
Name="$2"
@albertorb
albertorb / get_cifar100.py
Created November 21, 2017 10:33 — forked from beeva-albertorincon/get_cifar100.py
CIFAR100 dataset extraction
# coding: utf-8
import numpy as np
import pandas as pd
import pickle
from scipy import misc
from tqdm import tqdm
def unpickle(file):