olaf.utils.df_utils

Functions

read_with_flexible_header(file_path[, ...])

header_to_dict(header_lines)

Convert header lines to a dictionary

unique_dilutions(series)

Convert dilution values to integers when possible, handling tuples and lists

Module Contents

olaf.utils.df_utils.read_with_flexible_header(file_path, expected_columns=('degC', 'dilution', 'INPS_L', 'lower_CI', 'upper_CI'), max_rows=20)
Parameters:
  • file_path (pathlib.Path)

  • expected_columns (tuple)

  • max_rows (int)

olaf.utils.df_utils.header_to_dict(header_lines)

Convert header lines to a dictionary

olaf.utils.df_utils.unique_dilutions(series)

Convert dilution values to integers when possible, handling tuples and lists