LenkaV / CIF

Composite Indicators Framework for Business Cycle Analysis
GNU General Public License v3.0
56 stars 32 forks source link

*** AttributeError: 'MultiIndex' object has no attribute 'labels' #18

Closed sirhc78 closed 4 years ago

sirhc78 commented 4 years ago

Hi, I've found a bug recently. I use : selection = ["USA", "EA19", "JPN", "GBR","CHE"] data, subjects, measures = cif.createDataFrameFromOECD(countries = selection, dsname = 'MEI', frequency = 'M',startDate= '2019-09',endDate='2020-12')

And I get Requesting URL http://stats.oecd.org/SDMX-JSON/data/MEI/USA...M/all Data downloaded from https://stats.oecd.org/SDMX-JSON/data/MEI/USA...M/all?startTime=2019-09&endTime=2020-12&dimensionAtObservation=AllDimensions *** AttributeError: 'MultiIndex' object has no attribute 'labels'

LenkaV commented 4 years ago

Thank you. I can see that .labels in pandas library was deprecated in version 0.24.0.

LenkaV commented 4 years ago

New version of CIF has been released (0.0.6). It works with newer version of pandas MultiIndex.