class_docstr: Class for implementing the Maria DB handler as a backend store for
  EvaDB.
class_docstr_tok: ["Class","for","implementing","the","Maria","DB","handler","as","a","backend","store","for","EvaDB","."]
docstr: Fetch results from the cursor for the executed query and return the
  query results as dataframe.
docstr_tok: ["Fetch","results","from","the","cursor","for","the","executed","query","and","return","the","query","results","as","dataframe","."]
code: def _fetch_results_as_df(self, cursor):
      """
      Fetch results from the cursor for the executed query and return the
      query results as dataframe.
      """
      try:
          res = cursor.fetchall()
          res_df = pd.DataFrame(
              res,
              columns=[desc[0].lower() for desc in cursor.description],
          )
          return res_df
      except mariadb.ProgrammingError as e:
          if str(e) == "no results to fetch":
              return pd.DataFrame({"status": ["success"]})
          raise e
  
file_path: evadb/evadb/third_party/databases/mariadb/mariadb_handler.py
imports: import mariadb
  import pandas
  from evadb.third_party.databases.types import DBHandler, DBHandlerResponse, DBHandlerStatus
label_desc: Use image node_id 8 for calling the MariaDbHandler obj's underlying member method code with example usage: obj._fetch_results_as_df(cursor) and returns: res_df, pd