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

Using external data/TimeSeries - Expected Data type? #1

Closed
ddofer opened this issue Aug 30, 2017 · 1 comment
Closed

Using external data/TimeSeries - Expected Data type? #1

ddofer opened this issue Aug 30, 2017 · 1 comment

Comments

@ddofer
Copy link

ddofer commented Aug 30, 2017

I saw the library and wanted to try it on my own timeseries data.
I tried loading in a dataset with pandas where the time column was parsed as datetime64 and got an error when trying to use cesium on it. The existing EEG example is a custom dataset, and from the docs it seems you have your own datatype, based on parsing from the file?
Is there any chance of providing an example for using external data with the tool and what format is expected?
Thanks!

@bnaul
Copy link
Collaborator

bnaul commented Aug 30, 2017

This repository is just a mirror of raw data from other sources; the cesium.datasets module contains code that downloads and ingests it (see, e.g., https://github.com/cesium-ml/cesium/blob/master/cesium/datasets/andrzejak.py).

The time column is currently expected to be a float, but I agree that a datetime should be accepted as well. I can easily make that change in cesium but for now if you just call .astype(float) on your datetime64 column then it should work just fine.

Closing and replacing with cesium-ml/cesium#258.

@bnaul bnaul closed this as completed Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants