# establish the connection to eurostat
estat = Request('ESTAT')
resp = estat.get(resource_type = 'data', resource_id = 'nrg_pc_204_c')
electricty_df = resp.write(s for s in resp.msg.data.series if s.key.GEO in ['DE'])
I always get an error "DateParseError: unknown string format". I think it could have something to do with the time format in the table, which is not only the year but with an additional string behind it.
Am I doing something wrong, or is there a better way to import the data?
Thank you very much in advance!
Andi