These are chat archives for astropy/astropy

6th
May 2015
Adam Ginsburg
@keflavich
May 06 2015 07:16
anyone know if there's a way to plot (extract as a float array) the row of an astropy table (or a numpy record array)?
I have a table where the columns are ordered sequentially and I want to plot them...
Wolfgang Kerzendorf
@wkerzendorf
May 06 2015 07:17
I know how to do in pandas: mydf.iloc[0]
Adam Ginsburg
@keflavich
May 06 2015 07:17
is iloc an attribute of a panda… thing?
Wolfgang Kerzendorf
@wkerzendorf
May 06 2015 07:18
of a pandas DataFrame - which is a table
Adam Ginsburg
@keflavich
May 06 2015 07:18
what's the simplest astropy table->panda conversion approach?
ah, ok
(how do you construct a dataframe from a table)
from_records?
Wolfgang Kerzendorf
@wkerzendorf
May 06 2015 07:18
pandas - I think you should be able to just stuff an astropy table in a pandas dataframe - if that doesn’t work, then try from_records
Adam Ginsburg
@keflavich
May 06 2015 07:19
thanks wkerzendorf, that worked. I used from_records; DataFrame(table) did not work