修复评级bug

This commit is contained in:
shenjian@fangjia.com
2022-11-22 14:44:51 +08:00
parent 5641009d50
commit 08fec20154
@@ -105,39 +105,6 @@ def save_png(city=None):
sql += " where city='" + city + "'"
community_summary_df = es206_client.scan_by_sql_to_data_frame(sql)
for city in community_summary_df['city'].unique():
community_summary_df[(community_summary_df['estate_charge_ranking'].notna()) & (community_summary_df['city'] == city)]['estate_charge_ranking'].hist(bins=100)
pyplot.savefig(save_png_path + "/" + city + ".png")
pyplot.show()
fig = plt.figure(figsize=(15, 15))
plt.subplot(3, 1, 1)
seaweed_origin_df['consumption_rating'].hist(bins=100)
plt.xlabel('consumption_rating')
plt.tight_layout()
plt.subplot(3, 2, 3)
seaweed_origin_df['total_price'].hist(bins=100)
plt.xlabel('total_price')
plt.tight_layout()
plt.subplot(3, 2, 4)
seaweed_origin_df['estate_charge'].hist(bins=100)
plt.xlabel('estate_charge')
plt.tight_layout()
plt.subplot(3, 2, 5)
seaweed_origin_df['avg_cost'].hist(bins=100)
plt.xlabel('avg_cost')
plt.tight_layout()
plt.subplot(3, 2, 6)
seaweed_origin_df['relative_price_ranking'].hist(bins=100)
plt.xlabel('relative_price_ranking')
plt.tight_layout()
plt.savefig()
sync()