class_docstr: This handler handles connection and execution of the Empress Embedded statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Empress","Embedded","statements","."]
docstr: Gets a list of column names in the specified table.
  
  Args:
      table_name (str): The name of the table to get column names from.
  
  Returns:
      list: A list of column names in the specified table.
docstr_tok: ["Gets","a","list","of","column","names","in","the","specified","table",".","Args",":","table_name","(","str",")",":","The","name","of","the","table","to","get","column","names","from",".","Returns",":","list",":","A","list","of","column","names","in","the","specified","table","."]
code: def get_columns(self, table_name: str) -> Response:
      """
      Gets a list of column names in the specified table.
  
      Args:
          table_name (str): The name of the table to get column names from.
  
      Returns:
          list: A list of column names in the specified table.
      """
      conn = self.connect()
      cursor = conn.cursor()
      cursor.execute(
          "SELECT column_name FROM information_schema.columns WHERE table_name='{}'".format(
              table_name
          )
      )
      results = cursor.fetchall()
  
      # construct a pandas dataframe from the query results
      df = pd.DataFrame(results, columns=["column_name", "data_type"])
  
      response = Response(RESPONSE_TYPE.TABLE, df)
  
      return response
  
imports: import pyodbc
  from collections import OrderedDict
  import pandas
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 9 for calling the EmpressHandler obj's underlying member method code with example usage: obj.get_columns(table_name) and returns: response