red-data-tools / red-datasets

A RubyGem that provides common datasets
MIT License
30 stars 25 forks source link

Add ::SeabornDataList #134

Closed heronshoes closed 2 years ago

heronshoes commented 2 years ago

(This is a splitted feature in #132)

SeabornData consists of 19 datasets but there is no dataset list now. This PR is to introduce SeabornDataList class containing a list of datasets available.

Unfortunately data source has no .csv for summary, so the list is acquired from .html of data source directory. This is a same way as original seaborn library is doing in get_dataset_names() method.

kou commented 2 years ago

Thanks! I've resolved conflict and changed to use GitHub trees API https://docs.github.com/en/rest/git/trees to extract datasets instead of scraping.

heronshoes commented 2 years ago

I've learned a lot from your code. Thank you.