Skip to content

Instantly share code, notes, and snippets.

View spidezad's full-sized avatar

Tan Kok Hua spidezad

  • Seagate Technology
View GitHub Profile
@spidezad
spidezad / gist:674dfcba39f3fa20008fc42ba7441891
Created April 15, 2019 14:15
basic install problems on MAC
permission error when pip install
pip3 install xxx
sudo pip3 install xxx
@spidezad
spidezad / KMeans Cluster.ipynb
Created May 6, 2019 07:34
KMeans Cluster.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spidezad
spidezad / shopee1_exploration.ipynb
Created May 21, 2019 06:21
shopee1_cleaning.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spidezad
spidezad / shopee1_exploration.ipynb
Last active May 21, 2019 06:24
shopee1_exploration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spidezad
spidezad / shopee_for_wordpress_publish.ipynb
Created May 21, 2019 06:55
shopee_for_wordpress_publish.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spidezad
spidezad / PercentStackPlot as Mosaic - example.ipynb
Created May 21, 2019 08:09
PercentStackPlot as Mosaic - example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from keras.utils import np_utils
from sklearn.preprocessing import LabelEncoder
labelenc = LabelEncoder()
y_enc = labelenc.fit_transform(y)
y_onehot = np_utils.to_categorical(y_enc)
y_onehot
sns.heatmap(df.isnull(), yticklabels=False, cbar = False, cmap = 'viridis')
@spidezad
spidezad / gist_ref.json
Last active July 7, 2019 14:24
custom gist reference for the various gist
{
"basics" : {
"basic_ds_import" : "https://gist.github.com/spidezad/fd89453666030c97647fc8ae913274f8"
},
"seaborn" : {
"missing_value_display" : "https://gist.githubusercontent.com/spidezad/234ee266abcd1b54ea3d379abbe94c97/raw/9e0b364b7340ba4f721643218e685700e21127a8/gistfile1.txt"
@spidezad
spidezad / gist:7bf2a7e6af3392b1e6ee5ea6591b35ce
Last active November 27, 2019 15:04
VirtualEnvWrapper Notes
https://virtualenvwrapper.readthedocs.io/en/latest/
pip install virtualenvwrapper
mkvirtualenv env1
lssitepackages #see new packages
workon env1
echo $VIRTUAL_ENV
# make virtualenv with python3
mkvirtualenv env1 --python=python3