Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(3)  |  Derive(3)  |  Import(3)

src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/operations.py   VisTrails(Download)
from vistrails.core.modules.vistrails_module import ModuleError
 
from .common import TableObject, Table, choose_column, choose_columns
 
# FIXME use pandas?
class JoinedTables(TableObject):
    def __init__(self, left_t, right_t, left_key_col, right_key_col,
                 case_sensitive=False, always_prefix=False):
        self.left_t = left_t
        self.right_t = right_t
class ProjectedTable(TableObject):
    def __init__(self, table, col_idxs, col_names):
        self.table = table
        self.col_map = dict(enumerate(col_idxs))
        self.columns = len(self.col_map)
            column = table.get_column(col)
            columns.append([column[row] for row in matched_rows])
        selected_table = TableObject(columns, table.rows, table.names)
        self.set_output('value', selected_table)
 

src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/read/read_json.py   VisTrails(Download)
from vistrails.core.modules.vistrails_module import ModuleError
 
from ..common import TableObject, Table, InternalModuleError
 
 
        else:
            names = None
        return TableObject(columns, count, names)
 
 
            raise ModuleError(self, "Values should be lists or objects")
 
        return TableObject(columns, count, keys)
 
 

src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/read/read_csv.py   VisTrails(Download)
    numpy = None
 
from ..common import TableObject, Table, InternalModuleError
 
 
class CSVTable(TableObject):
    def __init__(self, csv_file, header_present, delimiter,
                 skip_lines=0, dialect=None, use_sniffer=True):
        self._rows = None