-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Milestone
Description
When executing this example code, the graph produced has the columns resorted such that they read ["col1", "col10", "col11", "col2", ...]
instead of the correctly sorted ["col1", "col2", "col3", "col4", ...]
from collections import OrderedDict
import pandas, random
data = OrderedDict([('col%s' % i, random.random()) for i in range(12)])
series = pandas.Series(data)
series.plot(kind='bar', color='gray')
Of course, the problem is solved by doing:
series = pandas.Series(data.values(), index=data.keys())
Just thought you would want to fix that though.
Metadata
Metadata
Assignees
Labels
No labels