Closed aborruso closed 5 years ago
Solved using resource = Resource({u'path': 'data.csv'})
Solved using
resource = Resource({u'path': 'data.csv'})
The result that "print(resource.headers) # ['city', 'location'] ", is not "['city', 'location'] ", but None. code: from datapackage import * resuil path = r'https://raw.githubusercontent.com/frictionlessdata/datapackage-py/master/data/data.csv' resource = Resource({'path': path}) print(resource.tabular) # true print(resource.headers) # ['city', 'location'] print(resource.read(keyed=True))
result: True None [{'city': 'london', 'location': '51.50,-0.11'},................
Hi, in the README repo file we have this input
And than
When I run
resource = Resource({path: 'data.csv'})
I havename 'path' is not defined
error.What's my error?
Thank you