yahiaali / oec Goto Github PK
View Code? Open in Web Editor NEWPython Module for The Observatory for Economic Complexity
License: MIT License
Python Module for The Observatory for Economic Complexity
License: MIT License
Hello, thank you very much for the wrapper. I haven't been able to make the product code specifier work. I've written out an example below where the first part works but the second part comes back with errors.
import oec
# This is copied from the README and works.
params1 = {'classification': 'hs92',
'trade_flow': 'export',
'year': 2015,
'origin': 'egy',
'destination': 'all',
'product': 'show'}
list_of_exports1 = oec.get_trade(**params1)
print(list_of_exports1)
# This is the same as above with the product code specified and doesn't work.
params2 = {'classification': 'hs92',
'trade_flow': 'export',
'year': 2015,
'origin': 'egy',
'destination': 'all',
'product': '0101'}
list_of_exports2 = oec.get_trade(**params2)
print(list_of_exports2)
The OEC API guideline says that it should be a four digit identifier. I'm not sure what I'm missing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.