I am trying to download a file from an FTP server in memory, transform it to a dataframe but also return it as bytes. Code as follows:
import io import panda
I think that's easier with tentaclio package :
with tentaclio.open("ftp://user:password@host/path/name_file.csv") as reader: df = pd.read_csv(reader)