Sherlock1011 1 год назад
Родитель
Сommit
6d4767f5e0
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      dao/dao.py

+ 4 - 1
dao/dao.py

@@ -3,11 +3,14 @@ from dao import Mysql
 def load_order_data_from_mysql():
     """从数据库中读取数据"""
     client = Mysql()
-    tablename = "mock_order"
+    tablename = "tads_brandcul_cust_order"
     query_text = "*"
     
     df = client.load_data(tablename, query_text)
     
+    df.drop('stat_month', axis=1, inplace=True)
+    print(df.columns)
+    
      # 去除重复值和填补缺失值
     df.drop_duplicates(inplace=True)
     df.fillna(0, inplace=True)