validate_circuits_dataframe

autoeis.utils.validate_circuits_dataframe(circuits: DataFrame)

Ensures that the circuits dataframe if properly formatted/typed.

Specifically, this function ensures that:
  • column names are valid (must be circuitstring, Parameters),

  • column data types are valid, i.e., circuitstring and Parameters must contain strings and dictionaries, respectively.

Parameters:

circuits (pd.DataFrame) – Dataframe containing the circuits.

Raises:

ValueError – If the dataframe does not have the correct format.