Skip to content

Instantly share code, notes, and snippets.

View Oxtay's full-sized avatar

Okhtay Azar Oxtay

  • San Francisco Bay Area
View GitHub Profile

Keybase proof

I hereby claim:

  • I am oxtay on github.
  • I am okhtay (https://keybase.io/okhtay) on keybase.
  • I have a public key ASCz_2iptfqQ6COTQYQUBaa3SiTF4eP-KHHZLXCFlcd6-wo

To claim this, I am signing this object:

@Oxtay
Oxtay / useful_pandas_snippets.py
Created December 11, 2015 17:59 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
#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)]
@Oxtay
Oxtay / error_package_install
Created February 25, 2014 20:59
Blog post on GAE installation
error: must supply either home or prefix/exec-prefix -- not both