Skip to content

Instantly share code, notes, and snippets.

@cpcloud
Created April 14, 2017 21:06
Show Gist options
  • Save cpcloud/7705bb12efc6be20d8a01079dcbfaaae to your computer and use it in GitHub Desktop.
Save cpcloud/7705bb12efc6be20d8a01079dcbfaaae to your computer and use it in GitHub Desktop.
In [19]: df = pd.DataFrame({'a':[1,2,3],'b':[1.0,None,3.0]}, index=list('abc'))
In [20]: t = pa.Table.from_pandas(df)
In [21]: t.column(2).to_pandas()
Out[21]:
0 a
1 b
2 c
Name: _index_level_0, dtype: object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment