text: import pandas as pd
  from cordex import esgf_access
  
  # Euro-Cordex search attributes
  attrs = {"project": "CORDEX", "domain": "EUR-11"}
  
  # create a datasets search result object
  results = esgf_access.datasets(attrs, verbose=True)
  
  # creates a pandas dataframe from dataset ids
  df = esgf_access.to_pandas(results, columns="CORDEX")
  print(df)
  df.to_csv("euro-cordex-esgf.csv")
  
  # regroup dataframe for excel output
  cordex_list = df.groupby(
      [
          "institute",
          "model_id",
          "driving_model_id",
          "experiment_id",
          "member",
          "frequency",
          "domain",
      ]
  )["variable"].apply(list)
  print(cordex_list)
  
  cordex_list.to_excel("cordex.xlsx")
  