Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(15) | Call(15) | Derive(0) | Import(0)
src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/operations.py VisTrails(Download)
def compute(self): left_t = self.get_input('left_table') right_t = self.get_input('right_table') case_sensitive = self.get_input('case_sensitive') always_prefix = self.get_input('always_prefix')
def compute(self): table = self.get_input("table") try: indexes = choose_columns( table.columns,
src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/read/read_excel.py VisTrails(Download)
raise ModuleError(self, "xlrd is not available") workbook = self.get_input('file') workbook = xlrd.open_workbook(workbook.name) if self.has_input('sheet_index'): sheet_index = self.get_input('sheet_index') if self.has_input('sheet_name'): name = self.get_input('sheet_name')
index = 0 sheet = workbook.sheet_by_index(index) header_present = self.get_input('header_present') table = ExcelTable(sheet, header_present) self.set_output('value', table)
src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/read/read_csv.py VisTrails(Download)
def compute(self): csv_file = self.get_input('file').name header_present = self.force_get_input('header_present', None) delimiter = self.force_get_input('delimiter', None) skip_lines = self.get_input('skip_lines') dialect = self.force_get_input('dialect', None) sniff_header = self.get_input('sniff_header')