holoviz / holoviz/hvplot

Plotting of streamz apply is odd

Open
#200 1 comment 0 reactions 0 assignees View on GitHub
interface: streamz
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

In the following code
```
data = a streamz dataframe with time-based index and example
recent = data.window(value='5m')
ts = recent.apply(lambda d: d.time.resample('10s').count())
```

- `ts.hvplot(kind='table')` works (but time index doesn't show, #199 )
- `ts.hvplot(kind='bar')` fails with
```
~/anaconda/envs/py36/lib/python3.6/site-packages/pandas/core/internals/managers.py in insert(self, loc, item, value, allow_duplicates)
1147 if not allow_duplicates and item in self.items:
1148 # Should this be a different kind of error??
-> 1149 raise ValueError('cannot insert {}, already exists'.format(item))
1150
1151 if not isinstance(loc, int):

ValueError: cannot insert time, already exists
```
- `ts.hvplot()` does not error but does not work
```
bokeh backend could not plot any Elements in the Overlay.
:DynamicMap []
:NdOverlay [Variable]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.