用streamz创建出来的这个df

来源:4-15 Streaming DataFrame

TeacherZhe

2020-12-08

无论是iloc、loc,还是plot,他都会报错。
都是DataFrame has no attribute 'loc’这样子的报错

写回答

2回答

麦兜搞IT

2020-12-09

应该是版本更新以后的问题,我当时录制课程的时候版本较低。不过您可以参考下这个文档 http://holoviews.org/user_guide/Streaming_Data.html  里面有不少新的用法

这节课我后面看看更新一下,或者删除掉。

0
0

TeacherZhe

提问者

2020-12-08

from streamz.dataframe import Random

s = Random(freq="100ms", interval="1s")

s.loc['2020-12-08 16:15:46.470677': '2020-12-08 16:15:46.570677',:]    

AttributeError: DataFrame has no attribute 'loc'


s.plot()

AttributeError: DataFrame has no attribute 'plot'

0
0

Python数据分析入门与实践,开启Data Science职业之旅

只要会python,就能轻松入门数据分析!

2217 学习 · 338 问题

查看课程