blob: 6c483743f85a83d90cfa13362bf504f3238b0d23 [file] [log] [blame]
speed = [0.1, 17.5, 40, 48, 52, 69, 88]
lifespan = [2, 8, 70, 1.5, 25, 12, 28]
index = ['snail', 'pig', 'elephant',
'rabbit', 'giraffe', 'coyote', 'horse']
df = ps.DataFrame({'speed': speed,
'lifespan': lifespan}, index=index)
df.plot.barh() # doctest: +SKIP