I'm trying to download Australian Bureau of Statistics data using pandasdmx. I can download the ERP_COB using SDMX no problem but for ERP by SA2, age and sex I am getting a timeout error. I have limited the time period to 2018 only but am still timing out.The weird thing is that it works sometimes but mostly not. I would like to try limiting the parameters such as age or sex but not sure how to do this. Any help would be much appreciated.
Thanks in advance.
from pandasdmx import Request
Agency_Code = 'ABS'
Dataset_Id = 'ABS_ERP_ASGS2016'
ABS = Request(Agency_Code)
data_response = ABS.data(resource_id='ABS_ERP_ASGS2016', params={'startTime': '2018','endTime': '2018'})
def timeout(self, value):
self.client.config['timeout'] = 10000
ERP2018=data_response.write().unstack().reset_index()
ERP2018 = ERP2018[(ERP2018.REGIONTYPE =='AUS') | (ERP2018.REGIONTYPE =='STE')]
ERP2018.to_csv('c:\\Temp\\erp2018.csv')