|
|
@@ -21,8 +21,8 @@ class MySqlDao:
|
|
|
self._cust_tablename = "tads_brandcul_cust_info"
|
|
|
self._order_tablename = "tads_brandcul_cust_order"
|
|
|
self._mock_order_tablename = "yunfu_mock_data"
|
|
|
- # self._shopping_tablename = "tads_brandcul_cust_info_lbs"
|
|
|
- self._shopping_tablename = "yunfu_shopping_mock_data"
|
|
|
+ self._shopping_tablename = "tads_brandcul_cust_info_lbs"
|
|
|
+ # self._shopping_tablename = "yunfu_shopping_mock_data"
|
|
|
|
|
|
self._initialized = True
|
|
|
|
|
|
@@ -51,10 +51,6 @@ class MySqlDao:
|
|
|
data.drop('stat_month', axis=1, inplace=True)
|
|
|
data.drop('city_uuid', axis=1, inplace=True)
|
|
|
|
|
|
- # 去除重复值和填补缺失值
|
|
|
- data.drop_duplicates(inplace=True)
|
|
|
- data.fillna(0, inplace=True)
|
|
|
- data = data.infer_objects(copy=False)
|
|
|
return data
|
|
|
|
|
|
def load_mock_order_data(self):
|
|
|
@@ -63,11 +59,6 @@ class MySqlDao:
|
|
|
|
|
|
data = self.db_helper.load_data_with_page(query, {})
|
|
|
|
|
|
- # 去除重复值和填补缺失值
|
|
|
- data.drop_duplicates(inplace=True)
|
|
|
- data.fillna(0, inplace=True)
|
|
|
- data = data.infer_objects(copy=False)
|
|
|
-
|
|
|
return data
|
|
|
|
|
|
def load_shopping_data(self, city_uuid):
|