Ruby Midwest 2011 - 11/4/11
- Conference notes:
- know where parking is...
- http://olabini.com/
- http://j.mp/rate-rubymidwest
- http://blog.therubymug.com/blog/2011/07/26/the-install-osx-lion.html
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.
name = VoxPelli OAuth Test | |
core = 7.x | |
dependencies[] = oauth_common | |
dependencies[] = http_client |
Portions taken from http://www.cs.utexas.edu/~mitra/csSpring2011/cs327/cx_mac.html (in case that link ever dies.)
Download the following files from Oracle
# 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)] |