df values

Solutions on MaxInterview for df values by the best coders in the world

showing results for - "df values"
Manuel
11 Oct 2019
1>>> df = pd.DataFrame({'age':    [ 3,  29],
2...                    'height': [94, 170],
3...                    'weight': [31, 115]})
4>>> df
5   age  height  weight
60    3      94      31
71   29     170     115
8>>> df.dtypes
9age       int64
10height    int64
11weight    int64
12dtype: object
13>>> df.values
14array([[  3,  94,  31],
15       [ 29, 170, 115]])
16