OliverSherouse / wbdata

A python library for accessing world bank data
GNU General Public License v2.0
180 stars 55 forks source link

Add last_updated attribute to returned Data objects #45

Closed OliverSherouse closed 4 years ago

OliverSherouse commented 4 years ago

I recently told someone that the API didn't give "last updated" metadata. Apparently it does, and I've just been frivolously throwing it away. Like an old glove!. Last updated should be a datetime attribute on returned single data series (either the list of dictionaries or the Pandas Series). For a returned DataFrame it should a dictionary with column names as keys and datetime objects as values.