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 / Part2_MobileDataSet_Gridsearch.ipynb
Created May 29, 2019 06:55
Part2_MobileDataset.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.
@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 / 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 / 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 / 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: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 / basic_import.py
Created April 15, 2019 13:08
basic working import for data
import os, sys, datetime, re, math
import pandas as pd
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
@spidezad
spidezad / gist:66d8b0080710b36312a1d23fb95436e9
Created April 15, 2019 07:59
Pandas encountered questions
Why does Seaborn keep drawing non-existing range value on the x-axis?
https://stackoverflow.com/questions/45264089/why-does-seaborn-keep-drawing-non-existing-range-value-on-the-x-axis
There is problem range column is categorical, so categories are not removed by design like in another operations.
You need Series.cat.remove_unused_categories: