nuclearmasses.utils.dataframe_utilsΒΆ

The module dataframe_utils contains functionality to extend that available via pandas or apply a common transformation to a dataframe that is used throughout the repository.

Functions

calculate_relative_error(raw_df, source)

Calculate the relative error of the mass excess.

read_fwf(base, **kwargs)

Overloaded version of pandas.read_fwf() that accepts additional types.

strip_char_from_string_columns(df, char)

Remove char from columns that are of known string type