|
read(fname,
delimiter=' , ' ,
skip_header=False)
read loads cell data, column headers and type information for each
column given a file path to a CSV formatted file. |
source code
|
|
|
data(fname,
delimiter=' , ' ,
skip_header=False)
data loads cell data and column headers. |
source code
|
|
|
|
|
cast(types,
names,
rows)
cast type casts all of the values in 'rows' to their corresponding
types in types. |
source code
|
|
|
convert_missing_cells(types,
names,
rows,
dstr='
' ,
dint=0,
dfloat=0.0)
convert_missing_cells changes the values of all NULL cells to the
values specified by dstr, dint and dfloat. |
source code
|
|
|
convert_columns(names,
rows,
**kwargs)
convert_columns executes converter functions on specific columns,
where the parameter names for kwargs are the column names, and the
parameter values are functions of one parameter that return a single
value. |
source code
|
|
|
convert_types(types,
names,
rows,
fstr=None,
fint=None,
ffloat=None)
convert_types works just like convert_columns, but on types instead
of specific columns. |
source code
|
|
|
column(types,
names,
rows,
colname)
column returns the column with name "colname", where the
column returned is a triple of the column type, the column name and a
list of cells in the column. |
source code
|
|
|
columns(types,
names,
rows)
columns returns a list of all columns in the data set, where each
column is a triple of its type, name and a list of cells in the
column. |
source code
|
|
|
type_str(typ)
type_str returns a string representation of a column type. |
source code
|
|
|
cell_str(cell_contents)
cell_str is a convenience function for converting cell contents to a
string when there are still NULL values. |
source code
|
|
|
print_data_table(types,
names,
rows)
print_data_table is a convenience function for pretty-printing the
data in tabular format, including header names and type annotations. |
source code
|
|