Skip to content

Instantly share code, notes, and snippets.

View sohanuzzaman's full-sized avatar

Mohan Sohanuzzaman sohanuzzaman

View GitHub Profile
from StringIO import StringIO
from openpyxl import Workbook
from openpyxl.compat import range
from openpyxl.cell import get_column_letter
from openpyxl.styles import Style, Font
def make_excel(dataset,
key_headers=None, # The order of attributes, or what to include
line_headers=None, # The order of table attributes, or what to include