How to get the data from Data frame in python?

ipython

#1

I have created a data frame in Ipython notebook .

In [57]: pop = {'Nevada': {2001: 2.4, 2002: 2.9},
....: 'Ohio': {2000: 1.5, 2001: 1.7, 2002: 3.6}}

In [58]: frame3 = DataFrame(pop)
In [59]: frame3
Out[59]:
Nevada Ohio
2000 NaN 1.5
2001 2.4 1.7
2002 2.9 3.6

I want to know how to extract the data from a Data frame leaving columns and rows.


#2

@sid100158,

Use frame3.values to show the values only and for columns frame3.columns.

Regards,
Mark