To get Data Package run following code in datahub



here is the url :
It gets wrong when i run the last code

import datapackage
dp = datapackage.DataPackage('')
# see metadata
# get list of csv files
csvList = [dp.resources[x].descriptor['name'] for x in range(0,len(dp.resources))]
print(csvList) # ["resource name", ...]

# access csv file by the index starting 0

closed #2

This topic was automatically closed after 7 days. New replies are no longer allowed.

opened #3


Hey Weng,

Inviting you to create an issue here or a discussion here