当 lacs 中有数据时,如何从 dataFrame 中删除特定变量(col)的异常值
plt.xticks(np.arange(0, len(x) + 1)[::365], x[::365])
plt.plot(dates, CentreLiftEffectiveCurrent)
plt.title('CentreLiftEffectiveCurrent')
我的变量 CentreLiftEffectiveCurrent 收到 1e^38 异常值。我怎样才能删除它们并用所需的值再次绘制图表
plt.xticks(np.arange(0, len(x) + 1)[::365], x[::365])
plt.plot(dates, CentreLiftEffectiveCurrent)
plt.title('CentreLiftEffectiveCurrent')
I'm getting 1e^38 abnormal values for my variable CentreLiftEffectiveCurrent. how can i remove them and plot the graph again with the desired values
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
过滤“异常”值的通常好方法是过滤离群值,即超出数据集中值范围的值:
您可以绘制箱形图来查看这些离群值:
ps:抱歉,草图中这是 q3 而不是 q2
你可以在这里看到也有关于此的讨论
A usually good way to filter "abnormal" values is to filter the outliers, i.e. values that are outside a range around the median values fo your dataset:
you can plot a box plot to see these outliers:
ps: sorry this is q3 and not q2 on the sketch
you can see here also a discussion about this