优化成交挂牌价系数

This commit is contained in:
2024-08-15 17:39:33 +08:00
parent 7dc6a7eea6
commit 1194467e5f
+2
View File
@@ -36,6 +36,8 @@ def sync():
}, {'city': 1, 'region': 1, 'district_name': 1, 'avg_price': 1, 'area': 1, 'trade_date': 1, 'match_id': 1})
df1 = pd.DataFrame(list(dear_price_r))
if df1.empty:
return
# 去重
df1.drop_duplicates(subset=['city', 'region', 'district_name', 'avg_price', 'area', 'trade_date', 'match_id'],
keep='first', inplace=True)