x = frame_query("select * from table",db) y = frame_query("select * from table",db) x1 = np.array(x) y1 = np.array(y)