slitflow.tbl.table module

class Table(info_path=None)[source]

Bases: Data

Table Data class using pandas.DataFrame saved as CSV files.

See also Data for properties and methods. Concrete subclass is mainly in slitflow.tbl, slitflow.trj and slitflow.loc.

EXT = '.csv'
load_data(path)[source]

Load CSV file as pandas.DataFrame.

save_data(df, path)[source]

Save pandas.DataFrame data into CSV file.

split_data()[source]

Split data table according to info.index.

set_index()[source]

How to get info.index.

Default function for Table is slitflow.setindex.from_data().

merge_different_index(self, req_no)[source]

Merge the index table to the split result data.

This function is used in post_run() to append index information into the result data table. For example, if process() does not return any img_no because required data is numpy.ndarray that do not have img_no information, we have to add img_no from index.

merge_overlap_index(self, req_no, on_col_name)[source]

Merge the index table to the split result data.

This function is used in post_run() to append index information into the result data table. This function merge index tables that have overlapping columns.