I copied @Travis_Opperud 's code from here, which quite nicely parses the csv from the file upload without needing to save the file to the gateway's disk.
Figured it out, Not sure why I got hung up like I did. If anyone else gets stuck: the following class can parse csv files and store as a dataset:
class CSVParser:
def __init__(self, file_in):
self.file = file_in
self.file_string = file_in.getString()
self.rows = [row.split(',') for row in self.file_string.split('\r')]
self.num_cols = max([len(row) for row in self.rows])
self.num_rows = len(self.rows)
self.headers = self.rows[0]
self.data = self.rows[1:]
@property
def extend…