def create_dataset(self, in_stream):
assert XLS_IMPORT<EOL>xls_book = xlrd.open_workbook(file_contents=in_stream)<EOL>dataset = tablib.Dataset()<EOL>sheet = xls_book.sheets()[<NUM_LIT:0>]<EOL>dataset.headers = sheet.row_values(<NUM_LIT:0>)<EOL>for i in range(<NUM_LIT:1>, sheet.nrows):<EOL><INDENT>dataset.append(sheet.row_values(i))<EOL><DEDENT>return dataset<EOL>
Create dataset from first sheet.