网站介绍:文章浏览阅读118次。import numpy as npimport pandas as pdimport os#将数据进行转置,转置后行为用户编号、列为日期、值为用户每日用电量。data=pd.read_csv('data_etr.csv',parse_dates=['DATA_DATE'],encoding='gbk')data.head()#透视表data_new=pd.pivot_table(data=data,values='KWH',index='CONS_NO',columns='_x[x>(qu+1.5*iqr)|x<(ql-1.5*iqr)] =np.nan
- 链接地址:https://blog.csdn.net/m0_55769244/article/details/120914745
- 链接标题:小试牛刀分析_x[x>(qu+1.5*iqr)|x<(ql-1.5*iqr)] =np.nan-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:4108
- 网站标签:x[x>(qu+1.5*iqr)|x<(ql-1.5*iqr)] =np.nan