上传者: 38629920
|
上传时间: 2021-12-10 08:38:48
|
文件大小: 69KB
|
文件类型: -
效果展示
*
Python代码
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
data = pd.read_csv('taobao_data.csv', index_col='\u4f4d\u7f6e')
data.drop(['宝贝', '卖家'], inplace=True, axis=1)
data = data.groupby(['位置']).mean().sort_values(by='\u6210\u4ea4\u91cf')
print(data.head())
fig, axis = plt.subplots(2, 2)