$ sudo npm install -g hexo-cli
$ hexo -v
hexo-cli: 0.1.9
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
# prereqs | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential | |
sudo apt-get -y install sudo wget vim screen git software-properties-common | |
# nvidia cuda drivers | |
cd /media | |
sudo wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.44-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1404_8.0.44-1_amd64.deb |
I hereby claim:
- I am itselijahtai on github.
- I am elijahtai (https://keybase.io/elijahtai) on keybase.
- I have a public key whose fingerprint is E376 F132 8F9C 70CF 683B 85B9 811A 3608 C365 C323
To claim this, I am signing this object:
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
#List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
#Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
#Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(value_list)] |
Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45 + workaround for Spark 1.4.x from @enahwe.
Download and install it from oracle.com