import pandas as pd import re from impala.dbapi import connect from impala.util import as_pandas from impala.dbapi import connect import json,sys from datetime import datetime conn=connect(host='127.0.0.1', port=21050, database='ods',timeout = 30) cursor=conn.cursor() cursor.execute("show tables") data=as_pandas(cursor) print(data)