Skip to content

Instantly share code, notes, and snippets.

@hann2
hann2 / gist:6443466
Created September 4, 2013 22:04
Table utility class for use with numpy/scipy/matplotlib in CS 498
from string import split
class Table:
def __init__(self):
self.labels = []
self.data = []
def populate(self, file_name, col_delim="\t", row_delim="\n"):
f = open(file_name, 'r')