code: def dataframe_from_result_table(table):
      import pandas as pd
      from ._models import KustoResultTable
      from dateutil.tz import UTC
  
      
      if not table:
          raise ValueError()
  
      if not isinstance(table, KustoResultTable):
          raise TypeError("Expected KustoResultTable got {}".format(type(table).__name__))
  
      columns = [col.column_name for col in table.columns]
      frame = pd.DataFrame(table._rows, columns=columns)
  
      # fix types
      for col in table.columns:
          if col.column_type == "bool":
              frame[col.column_name] = frame[col.column_name].astype(bool)
  
      return frame
docs: Converts Kusto tables into pandas DataFrame.
      :param azure.kusto.data._models.KustoResultTable table: Table received from the response.
      :return: pandas DataFrame.
      :rtype: pandas.DataFrame