@classmethod<EOL><INDENT>def _convert_to_style(cls, style_dict):<DEDENT>
from openpyxl.style import Style<EOL>xls_style = Style()<EOL>for key, value in style_dict.items():<EOL><INDENT>for nk, nv in value.items():<EOL><INDENT>if key == "<STR_LIT>":<EOL><INDENT>(xls_style.borders.__getattribute__(nk)<EOL>.__setattr__('<STR_LIT>', nv))<EOL><DEDENT>else:<EOL><INDENT>xls_style.__getattribute__(key).__setattr__(nk, nv)<EOL><DEDENT><DEDENT><DEDENT>return xls_style<EOL>
converts a style_dict to an openpyxl style object
Parameters
----------
style_dict : style dictionary to convert