I want to read .xlsx file as pandas dataframe from an FTP connection, However I want to do this on memory without writing the .xlsx to my local disk.
Here is my current code:
filename = 'my_excel.xlsx'
localfile = open(filename, 'wb')
ftp.retrbinary('RETR ' + filename, localfile.write, 1024)
ftp.quit()
localfile.close()
After this section I can read .xlsx from my local disk as pandas dataframe however I want to do handle this in buffer memory.
How can I do this. Thanks for help=)