class_docstr: Airflow rich console.
class_docstr_tok: ["Airflow","rich","console","."]
docstr: Render list of dictionaries as table.
docstr_tok: ["Render","list","of","dictionaries","as","table","."]
code: def print_as_table(self, data: list[dict]):
      """Render list of dictionaries as table."""
      if not data:
          self.print("No data found")
          return
  
      table = SimpleTable(show_header=self.show_header)
      for col in data[0]:
          table.add_column(col)
  
      for row in data:
          table.add_row(*(str(d) for d in row.values()))
      self.print(table)
  
imports: from __future__ import annotations
  import inspect
  import json
  from typing import TYPE_CHECKING, Any, Callable, Sequence
  from rich.box import ASCII_DOUBLE_HEAD
  from rich.console import Console
  from rich.syntax import Syntax
  from rich.table import Table
  from tabulate import tabulate
  from airflow.plugins_manager import PluginsDirectorySource
  from airflow.utils import yaml
  from airflow.utils.platform import is_tty
label_desc: Use image node_id 4 for calling the AirflowConsole obj's underlying member method code with example usage: obj.print_as_table(data) without return types