/scripts/boxplot_test.py
Python | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | c504adf74362cff5ce7e086ea8d0c7e3 MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
- import matplotlib.pyplot as plt
- import random
- import pandas.util.testing as tm
- tm.N = 1000
- df = tm.makeTimeDataFrame()
- import string
- foo = list(string.letters[:5]) * 200
- df['indic'] = list(string.letters[:5]) * 200
- random.shuffle(foo)
- df['indic2'] = foo
- df.boxplot(by=['indic', 'indic2'], fontsize=8, rot=90)
- plt.show()