slitflow.tbl.table module
- class Table(info_path=None)[source]
Bases:
DataTable Data class using pandas.DataFrame saved as CSV files.
See also
Datafor properties and methods. Concrete subclass is mainly inslitflow.tbl,slitflow.trjandslitflow.loc.- EXT = '.csv'
- load_data(path)[source]
Load CSV file as
pandas.DataFrame.
- save_data(df, path)[source]
Save
pandas.DataFramedata into CSV file.
- 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, ifprocess()does not return anyimg_nobecause required data isnumpy.ndarraythat do not haveimg_noinformation, we have to addimg_nofromindex.
- 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.