Skip to content

Instantly share code, notes, and snippets.

@jakeemerson
jakeemerson / array_table.py
Created December 29, 2017 13:25
A table-like object that can be sliced like a numpy array. Pure python.
class Table(list):
"""
a table object that can be sliced like a numpy array
"""
def __init__(self, *args, has_header=True):
self.has_header = has_header
if has_header:
self.header_index = {}