from pyhive import hive cursor = hive.connect(\'XXX.XX.XX.XX\').cursor() import pandas as pd def to_df(sql): cursor.execute