11from pandas.plotting import register_matplotlib_converters
12
13matplotlib.use("agg")
14import matplotlib.pyplot as plt15
16# Workaround a pandas dataframe to matplotlib issue
17register_matplotlib_converters()
All module level imports should be at the top of the file. This means that there should be no statements in between module level imports.