Skip to content

Add datasets module - #3780

Merged
TomAugspurger merged 1 commit into
dask:masterfrom
mrocklin:datasets
Jul 21, 2018
Merged

TomAugspurger merged 1 commit into
dask:masterfrom
mrocklin:datasets

Conversation

@mrocklin

@mrocklin mrocklin commented Jul 18, 2018 •

Copy link
Copy Markdown
Member

Currently this only contains timeseries.
Hopefully this creates a model on which we can add in the future.

Example

In [1]: import dask

In [2]: dask.datasets.timeseries()
Out[2]: 
Dask DataFrame Structure:
                   id    name        x        y
npartitions=30                                 
2000-01-01      int64  object  float64  float64
2000-01-02        ...     ...      ...      ...
...               ...     ...      ...      ...
2000-01-30        ...     ...      ...      ...
2000-01-31        ...     ...      ...      ...
Dask Name: make-timeseries, 30 tasks
  • Tests added / passed
  • Passes flake8 dask

Currently this only contains timeseries.
Hopefully this creates a model on which we can add in the future.
@mrocklin

Copy link
Copy Markdown
Member Author

Adding this seems a little premature with only one dataset, but I'm inclined to start recording some videos and I'd like to future-proof them a bit

@jakirkham

Copy link
Copy Markdown
Member

Are you planning to start storing test data in Dask? If so, would like to discuss that further.

@mrocklin

Copy link
Copy Markdown
Member Author

Nope

@mrocklin

Copy link
Copy Markdown
Member Author

I think that operationally we need to decide what sort of API we want for easy to use datasets going forwards. Should this be centralized in the dask project? Should it be in a .datasets module or something else (sklearn does this)?

If no one has any thoughts on this I'm going to go ahead and merge.

@jakirkham

Copy link
Copy Markdown
Member

If it's only including generated data (not binary data), I have no thoughts on it. If we get into binary data packaging, I'd like to engage in that discussion.

@mrocklin

mrocklin commented Jul 20, 2018 via email

Copy link
Copy Markdown
Member Author

@jakirkham

Copy link
Copy Markdown
Member

Definitely packaging binary data. Possibly also downloaded data. How/when would downloaded datasets get added?

@mrocklin

mrocklin commented Jul 20, 2018 via email

Copy link
Copy Markdown
Member Author

@jakirkham

Copy link
Copy Markdown
Member

I see. Is it on import?

Ok, that makes sense.

@mrocklin

mrocklin commented Jul 20, 2018 via email

Copy link
Copy Markdown
Member Author

@mrocklin

Copy link
Copy Markdown
Member Author

OK to merge?

This is in-line with existing conventions in scikit-learn, (and I suspect other projects). I think that having it in a release will make it easier to integrate with the dask-examples repository, which will encourage additional use in the future.

@jakirkham

Copy link
Copy Markdown
Member

Sure this seems fine. Would you like to add a test?

@mrocklin

mrocklin commented Jul 21, 2018 via email

Copy link
Copy Markdown
Member Author

@mrocklin mrocklin mentioned this pull request Jul 21, 2018

@TomAugspurger TomAugspurger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

We'll want to think a bit about if / how we'll include these in the documentation. I'm not even sure if an entry in the API docs is necessary.

@TomAugspurger
TomAugspurger merged commit cf27f9e into dask:master Jul 21, 2018
@mrocklin
mrocklin deleted the datasets branch January 3, 2019 17:42
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

Successfully merging this pull request may close these issues.

3 participants