holoviz / holoviz/datashader

Use DataFrame.index for x-axis

Open
#218 15 comments 1 reaction 0 assignees View on GitHub
ready
Dominant language
Python
Stars
3.6k
Forks
376
Avg merge
4h 32m
Merged PRs (30d)
1

Description

It is typical to use a `DatetimeIndex` on Pandas `DataFrame` and it works well when plotting/indexing so it would be nice to be able to specify e.g.

```
cvs = ds.Canvas(x_range=x_range, y_range=y_range, plot_width=w, plot_height=h)
cvs.line(df, 'index', 'y', agg=ds.any())
```

to draw a line.

Furthermore, if using Dask `DataFrame` that loads out-of-memory data lazily, it is necessary to specify the range using the index or it will go through the entire `DataFrame` every time which can be very slow.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.