slitflow.load.table module

class SingleCsv(info_path=None)[source]

Bases: Table

Import a CSV table as the top level of the observation data.

Parameters:
  • reqs[] (None) – Input Data is not required.

  • param["path"] (str) – Path to a CSV file.

  • param["col_info"] (list of list, optional) – Column information. Each list should have [depth number, column name, unit, type, description]. e.g. [[1, “img_no”, “int32”, “num”, “Image number”]].

  • param["split_depth"] (int) – File split depth number.

Returns:

Imported Table class

Return type:

Table

set_info(param)[source]

Create information.

static process(reqs, param)[source]

Load a CSV file from the path string.

Parameters:

param["path"] (str) – Path to a CSV file.

Returns:

Imported table

Return type:

pandas.DataFrame