docs: def create_dataframe(ensemble):
      """
      Create a data frame from given nested lists of ensemble data
      :param list ensemble: Ensemble data
      :return obj: Dataframe
      """
      logger_dataframes.info("enter ens_to_df")
      # "Flatten" the nested lists. Bring all nested lists up to top-level. Output looks like [ [1,2], [1,2], ... ]
      ll = unwrap_arrays(ensemble)
      # Check that list lengths are all equal
      valid = match_arr_lengths(ll)
      if valid:
          # Lists are equal lengths, create the dataframe
          df = pd.DataFrame(ll)
      else:
          # Lists are unequal. Print error and return nothing.
          df = "empty"
          print("Error: Numpy Array lengths do not match. Cannot create data frame")
      logger_dataframes.info("exit ens_to_df")
      return df