mh_utils.csv_parser.utils

CSV utility functions.

New in version 0.2.0.

Functions:

concatenate_json(*files[, outfile])

Concatenate multiple JSON files together and return a list of Sample objects in the concatenated json output.

drop_columns(df, *[, axis, inplace])

Drop columns from the MassHunter CSV file.

reorder_columns(df)

Reorder columns from the MassHunter CSV file.

concatenate_json(*files, outfile=None)[source]

Concatenate multiple JSON files together and return a list of Sample objects in the concatenated json output.

Parameters
Return type

SampleList

drop_columns(df, *, axis=1, inplace=True, **kwargs)[source]

Drop columns from the MassHunter CSV file.

Parameters
Return type

DataFrame

reorder_columns(df)[source]

Reorder columns from the MassHunter CSV file.

Parameters

df (DataFrame) – The pandas.DataFrame to reorder columns in.

Return type

DataFrame