My target file on the FTP server is a ZIP file, and the .CSV is located two folders further in.
How would I be able to use BytesIO to allow pandas to read the csv without downloading it?
This is what I have so far:
ftp = FTP('FTP_SERVER')
ftp.login('USERNAME', 'PASSWORD')
flo = BytesIO()
ftp.retrbinary('RETR /ParentZipFolder.zip', flo.write)
flo.seek(0)
With flo
as my BytesIO object of interest, how would I be able to navigate a few folders down within the object, to allow pandas to read my .csv file? Is this even necessary?