'How do draw a boxplot from a BoxPlot.BP dictionary?
I have script #1 which generates a list of dicts. One of the items in the dict is a BP dictionary (from pandas.DataFrame.boxplot()).
One sample dict of the list looks like this:
{'station': 'LAX',
'fleet': '777',
'sample_size': 40,
'arrival_delay_count': 17,
'boxplot': BP(ax=<AxesSubplot:>,lines={'whiskers': [<matplotlib.lines.Line2D object at 0x000001AB97862980>, <matplotlib.lines.Line2D object at 0x000001AB97862CB0>], 'caps': [<matplotlib.lines.Line2D object at 0x000001AB97862FE0>, <matplotlib.lines.Line2D object at 0x000001AB97863310>], 'boxes': [<matplotlib.lines.Line2D object at 0x000001AB97862680>], 'medians': [<matplotlib.lines.Line2D object at 0x000001AB97863610>], 'fliers': [<matplotlib.lines.Line2D object at 0x000001AB97863970>], 'means': []}), 'percentile_25': -24.5, 'percentile_50': -7.5, 'percentile_75': 29.25, 'min': -105.125, 'max': 109.875
}
Script #2 retrieves the list and is suppose to generate a boxplot from this BP dict.
Question: How do I feed this dict to matplotlib?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
