Skip to content

Instantly share code, notes, and snippets.

View elijahxtai's full-sized avatar
🌭
What’s happening?

elijahtai elijahxtai

🌭
What’s happening?
View GitHub Profile
@elijahxtai
elijahxtai / useHexo.md
Created November 23, 2017 19:43 — forked from btfak/useHexo.md
How to use Hexo and deploy to GitHub Pages
#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)]
@elijahxtai
elijahxtai / Spark+ipython_on_MacOS.md
Created May 30, 2016 14:41 — forked from ololobus/Spark+ipython_on_MacOS.md
Apache Spark installation + ipython notebook integration guide for Mac OS X

Apache Spark installation + ipython notebook integration guide for Mac OS X

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.

Install Java Development Kit

Download and install it from oracle.com