-
Notifications
You must be signed in to change notification settings - Fork 6
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
One or multiple resources #7
Comments
Can you elaborate? Clarify the documentation? |
I'd be happy to update the doc, but I first would want to make sure that this behavior is "by design". What about a way to make it more explicit? For example, with a |
An update would be great, I think you described the behaviour correctly - it's definitely not well documented atm and the silent discarding probably can be confusing. https://github.com/frictionlessdata/datapackage-py has a more general approach where you can/need to iterate over "resources". |
There is already a package that supports reading multiple resources of a data package into a Pandas Dataframe. Even though the last commit was in 2017, at first glance it seems to offer more functionality than this one. @danfowler even did a post about it on the Open Knowledge Labs Blog. Would it make sense to merge these efforts? |
@augusto-herrmann Don't know, when i started this tool i wanted something that would quickly load CSVs from a Data Package into Pandas DataFrames. I think the scope of the tableschema tool was more general and requires more knowledge of the DataPackage toolchain. |
Please clarify the behaviour of the library in respect to having one or multiple resources in the Data Package, i.e. under what conditions to expect the
read_datapackage
call to directly return the DataFrame vs. an array of them. It seems to me that the latter only works when there are multiple compatible types (CSV or GeoJSON). This is also not very logical, and error-prone when trying to build an application for arbitrary data input.The text was updated successfully, but these errors were encountered: