How to make a list from DataFrame?



I have a DataFrame (coordinates):

    X   Y   Z
0  11  44  77
1  22  55  88
2  33  66  99

I need to get Y and Z columns values to a list. If I do something like:

centers = [df['Y'], df['Z']]

or

Y = [df['Y']]

I got a list with index columns like:

print Y

    0  44
    1  55
    2  66

How to create a list without indexes values (0,1,2)?


Related to : How to make a list from DataFrame?

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .