def dilution(eem_df, dilution_factor):
    """Corrects for sample dilution. Samples can be diluted for a variety of reasons,
    for example for total absorbance values greater than X, N et al. states that a
    two-factor dilution is necessary.

    Args:
        eem_df (pandas.DataFrame): Excitation Emission Matrix of a sample.
        dilution_factor (int or float): Dilution of factor of original sample, (0, 1].

    Returns:
        pandas.DataFrame: Dilution corrected Excitation Emission Matrix.
    """
    return eem_df * dilution_factor