Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetime handling for spikes #3736

merged 2 commits into from May 27, 2019

datetime handling for spikes #3736

merged 2 commits into from May 27, 2019


Copy link

@poplarShift poplarShift commented May 27, 2019

The previous implementation of get_data for Spikes in the matplotlib backend used the element.array() method, which already coerces datetime values to int in case of mixed data types. I fixed that and updated the datetime handling using recently added utils.

The following now works, whereas before it didn't:

import pandas as pd
import numpy as np
import holoviews as hv

e = hv.Spikes((pd.date_range('2100-1-1', '2100-10-10', periods=20), np.random.rand(20)), 'Date', 'c')

Screen Shot 2019-05-27 at 3 20 57 PM

Copy link

@philippjfr philippjfr commented May 27, 2019

Thanks @poplarShift!

@philippjfr philippjfr merged commit ed8a329 into master May 27, 2019
3 of 4 checks passed
Copy link

@jlstevens jlstevens commented May 28, 2019

Yes, thank you @poplarShift!

@poplarShift poplarShift deleted the spikes_datetime branch May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants