Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created June 11, 2014 13:28
Show Gist options
  • Save greggyNapalm/004f5b22edd537baf6be to your computer and use it in GitHub Desktop.
Save greggyNapalm/004f5b22edd537baf6be to your computer and use it in GitHub Desktop.
In [15]:
print type(df_with_tags.tags)
print type(df_with_tags.tags.values)
print df_with_tags.tags.head(10)
np.searchsorted(df_with_tags.tags[0], 'wizz_x')
<class 'pandas.core.series.Series'>
<type 'numpy.ndarray'>
0 [wizz_x, wiz_y, wiz_z]
2 [wizz_x, wiz_y, wiz_z]
3 [wizz_z, wiz_y]
4 [wizz_z, wiz_y]
8 [wiz_y, wiz_z]
9 [wizz_x]
10 [wizz_x]
11 [wizz_z, wiz_y]
12 [wizz_x1]
13 [wizz_x1, wiz_y]
Name: tags, dtype: object
Out[15]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment