blob: 8f407c04fa636888451bc18406b875a0cd273908 [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.bar(x='lifespan') # doctest: +SKIP