PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/scripts/boxplot_test.py

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