Closed roll closed 7 years ago
@roll i've renmaed it a bit to reflect the point. Basically, Table.js duplicates from of the stuff from a Tabular Resource.js. Are there ways to merge them and make an awesome TabularResource - that is developing in the direction of a proper DataFrame object ...
@rufuspollock Resource and Table is just an implementations of specs. My first try was to have TabularResource but it just hadn't work with all requirements from 2 different specs, sql/bigquery/etc integrations, different repos etc.
So if we need to have DataFrame object we just should wrap existent Resource/Table API to provide needed high-level API. An attempt to have 1 API (class) to conform 3 different requirements (table schema spec, tabular resource spec and data frame spec) will probably fail I suppose.
But I still have to dive in your research)
@roll let's distinguish:
Focus for now is the first item.
FIXED/WONTFIX
In v1
release Resource
provides both non-tabular and tabular interfaces. :
resource = await Resource.load('data.csv')
resource.read() // bytes
if (resource.tabular) {
resource.table.read() // rows
}
Link to an alternative implementation data.js
:
@rufuspollock: