RIAssigner.data.PandasData
Classes
Class to handle data from filetypes which can be imported into a pandas dataframe. |
Module Contents
- class RIAssigner.data.PandasData.PandasData(filename: str, filetype: str, rt_unit: str)[source]
Bases:
RIAssigner.data.Data.DataClass to handle data from filetypes which can be imported into a pandas dataframe.
- write(filename: str) None[source]
Write data on disk. Supports ‘csv’, ‘tsv’, ‘tabular’ and ‘parquet’ formats.
- _init_ri_column_info() None[source]
Initialize retention index column name and set its position next to the retention time column.
- _init_ri_indices() None[source]
Initialize retention indices to a factor of 100 of carbon numbers or None if carbon numbers are not present.
- _replace_nans_with_0s() None[source]
Replace NaN values (including blank strings and invalid values) with 0s.
- property retention_times: Iterable[RIAssigner.data.Data.Data.RetentionTimeType][source]
Get retention times in seconds.
- property retention_indices: Iterable[RIAssigner.data.Data.Data.RetentionIndexType][source]
Get retention indices from data or computed from carbon numbers.
- property comment: Iterable[RIAssigner.data.Data.Data.CommentFieldType][source]
Get comments.
- Returns:
Comments.
- Return type:
Iterable[Data.CommentFieldType]