eiapy icon indicating copy to clipboard operation
eiapy copied to clipboard

Allow only data to be returned

Open systemcatch opened this issue 6 years ago • 0 comments

Is it worth allowing just data to be returned? Something like this;

>>> from eiapy import Series
>>> cal_to_mex = Series('EBA.CISO-CFE.ID.H')
>>> cal_to_mex.last(5, data_only=True)
[['20180401T07Z', -11],
['20180401T06Z', -16],
['20180401T05Z', -11],
['20180401T04Z', -7],
['20180401T03Z', -5]]

This saves the user having to inspect the response and add something like ['series'][0]['data'] to get pure data. However this is quite a bit of work to implement, does it provide much value?

systemcatch avatar Jun 07 '18 09:06 systemcatch