You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet the Data Resource JSON schema and the Tabular Data Resource JSON schema (and specifications) recommend the hash and bytes information to be at the root level.
Question: is this apparent discrepancy intended, or is it something that should be improved?
Please preserve this line to notify @roll (lead of this repository)
The text was updated successfully, but these errors were encountered:
It's true that in the Framework we put all the stats in a nested object. It's because of a few reasons including internal performance. The same approach was used in Data Package Pipelines.
Actually, I think that having stats as an object is better and more scalable (extensions can add more stats without messing with the root properties) and potentially might be adopted by the specs themselves.
But currently, it contradicts specs so what do you think might be a solution - using a flag on the export?
fromfrictionlessimportResource, systemsystem.standards_version='v1'# or with system.use_standards_version('v1')resource=Resource('table.csv')
resource.infer(stats=True)
resource.to_descriptor()
Overview
Consider introducing the
Stats
class (resource.stats
)Yet the Data Resource JSON schema and the Tabular Data Resource JSON schema (and specifications) recommend the hash and bytes information to be at the root level.
Question: is this apparent discrepancy intended, or is it something that should be improved?
Please preserve this line to notify @roll (lead of this repository)
The text was updated successfully, but these errors were encountered: