Make it compatible with pandas

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>