I'm trying to use read_csv
in pandas to read a zipped file from an FTP server. The zip file contains just one file, as is required.
Here's my code:
pd.read_csv('ftp://ftp.fec.gov/FEC/2016/cn16.zip', compression='zip')
I get this error:
AttributeError: addinfourl instance has no attribute 'seek'
I get this error in both pandas 18.1 and 19.0. Am I missing something, or could this be a bug?