From 1c8dde6e5bf08c0d4b63e5d044cfb1e4a5f88940 Mon Sep 17 00:00:00 2001 From: testkevinkim <48571362+testkevinkim@users.noreply.github.com> Date: Wed, 18 Mar 2020 14:31:36 +0900 Subject: [PATCH] Update xaquery.py replaced df.set_value with df.at because of deprecated --- xing/xaquery.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xing/xaquery.py b/xing/xaquery.py index cbe5fcb..1d4ee10 100644 --- a/xing/xaquery.py +++ b/xing/xaquery.py @@ -280,7 +280,8 @@ def request(self, input, output, stopCond=[], isNext=False): startIndex = len(df) for p in range(0,self.query.GetBlockCount(self.type + k)): for col in list(df.columns.values): - df.set_value(p + startIndex, col, self.query.GetFieldData(self.type + k, col, p)) + df.at[p + startIndex, col] = self.query.GetFieldData(self.type + k, col, p) + # df.set_value deprecated else: for col in v.keys(): v[col] = self.query.GetFieldData(self.type + k, col, 0) @@ -298,4 +299,4 @@ def request(self, input, output, stopCond=[], isNext=False): # log.debug("<<<<< [%s-Query] 결과(callNext=True):%s" % (self.type,self.output)) return self.output except Exception: - traceback.print_exc(file=sys.stdout) \ No newline at end of file + traceback.print_exc(file=sys.stdout)