修复评级bug
This commit is contained in:
@@ -6,9 +6,9 @@ import pandas as pd
|
||||
import logging
|
||||
import os
|
||||
from elasticsearch import helpers
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from sklearn.mixture import GaussianMixture
|
||||
from matplotlib import pyplot
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -108,6 +108,36 @@ def save_png(city=None):
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user