semtk3.semtktable module

class semtk3.semtktable.SemtkTable(table_dict)

Bases: object

static create_table_dict(col_names, col_types, rows)
delete_column(col_name)
get_cell(row, col)
get_cell_as_date(row, col)
get_cell_as_float(row, col)
get_cell_as_int(row, col)
get_cell_as_string(row, col)
get_cell_typed(row, col)

PEC TODO Full types list : especially Time (see list in ImportSpecHandler.java)

get_column(col)
get_column_index(col_name)

get column index raises ValueError

get_column_names()
get_column_type(col_name)

raises ValueError on bad col_name

get_column_types()
get_csv_string()
get_matching_row_nums(col_name, regex_str)
get_matching_rows(col_name, regex_str)
get_num_columns()
get_num_rows()
get_pandas_data()
get_rows()

returns array of arrays

has_column(col_name)
set_cell(row, col, val)
to_dict()
to_json_str()