Skip to content

Instantly share code, notes, and snippets.

@MrMaksimize
MrMaksimize / useful_pandas_snippets.py
Last active December 6, 2016 18:01 — 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(valuelist)]
@MrMaksimize
MrMaksimize / cx_oracle_docker.md
Last active November 4, 2016 21:14 — forked from thom-nic/cx_oracle_instructions.md
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.
@MrMaksimize
MrMaksimize / vptest.info
Last active December 24, 2015 12:49 — forked from voxpelli/vptest.info
name = VoxPelli OAuth Test
core = 7.x
dependencies[] = oauth_common
dependencies[] = http_client
@MrMaksimize
MrMaksimize / nsincrementalstore.markdown
Created September 4, 2012 14:18 — forked from chriseidhof/nsincrementalstore.markdown
Accessing an API using CoreData's NSIncrementalStore

Accessing an API using CoreData's NSIncrementalStore

Note: the original location of this article is on my blog, however, it is posted here too for better readability.

In this article, we will see how to use Core Data for accessing your API. We will use the Bandcamp API as our running example. I've only been experimenting with this code for a few days, so there might be mistakes in there.