examples/pandas/dataframes.py
import pandas

planets = ['Mercury', 'Venus', 'Earth', 'Mars', 'Ceres', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Pluto', 'Charon']
distance = [0.4, 0.7, 1, 1.5, 2.77, 5.2, 9.5, 19.6, 30, 39, 39]
mass = [0.055,  0.815, 1, 0.107, 0.00015, 318, 95, 14, 17, 0.00218, 0.000254]

data = {
    'planet'   : planets,
    'distance' : distance,
    'mass'     : mass,
}
frame = pandas.DataFrame(data)
print(frame)

#     distance        mass   planet
# 0       0.40    0.055000  Mercury
# 1       0.70    0.815000    Venus
# 2       1.00    1.000000    Earth
# 3       1.50    0.107000     Mars
# 4       2.77    0.000150    Ceres
# 5       5.20  318.000000  Jupiter
# 6       9.50   95.000000   Saturn
# 7      19.60   14.000000   Uranus
# 8      30.00   17.000000  Neptune
# 9      39.00    0.002180    Pluto
# 10     39.00    0.000254   Charon

print(frame.head())  # first 5 rows

print(frame['distance'])
frame['distance'] *= 2  # multiply each element by 2