Read CSV malformed (3 csv concatenated) in a single URL call
问题 I'm trying to read this CSV: https://re.jrc.ec.europa.eu/api/tmy?lat=41&lon=22&startyear=2007 And right now I'm doing 3 calls to parse it, since its structure is inconsistent. (they are basically 3 csv concatenated, with 3 indexes in between) url = 'https://re.jrc.ec.europa.eu/api/tmy?lat=41&lon=22&startyear=2007' MetaData = pd.read_csv(url,sep=":", nrows=3,names=['key','value']) # do something with metadata MonthData = pd.read_csv(url,skiprows=3,nrows=12) # do something with the year Data =