Skip to content

Instantly share code, notes, and snippets.

View pasunboneleve's full-sized avatar
👨‍💻
Looking for work

Daniel Vianna pasunboneleve

👨‍💻
Looking for work
  • Melbourne, Australia
  • 06:52 (UTC +11:00)
View GitHub Profile
@pasunboneleve
pasunboneleve / test.py
Last active December 10, 2015 22:08
Testing XLpandas.py
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 10 15:14:02 2013
@author: daniel.vianna
"""
from copy import deepcopy
from xlwt import Worksheet
import numpy as np
@pasunboneleve
pasunboneleve / XLpandas.py
Last active December 10, 2015 21:48
Extending pandas DataFrame and Series objects [http://pandas.pydata.org/] so it properly saves multiple levels of column/row indexes and xlwt styles to .xls files.
"""
#ws argument is a xlwt worksheet object, as in:
from xlwt import Workbook
wb = Workbook()
ws = wb.add.sheet('sheet 1')
# Example of how to wrap xlwt.Style object
conv = pd.io.parsers.CellStyleConverter()