solarforecastarbiter.validation.quality_mapping.convert_flag_frame_to_strings(flag_frame, sep=', ', empty='OK')[source]

Convert the flag_frame output of convert_mask_into_dataframe() into a pandas.Series of strings which are the active flag names separated by sep. Any row where all columns are false will have a value of empty.

  • flag_frame (pandas.DataFrame) – Boolean DataFrame with descriptive column names
  • sep (str) – String to separate column names by
  • empty (str) – String to replace rows where no columns are True

pandas.Series – Of joined column names from flag_frame separated by sep if True. Has the same index as flag_frame.