I want to transfer a Python dataframe directly as a .csv file to a remote server using Paramiko module. Currently, I save the dataframe as a .csv then I push that .csv file
Just use SFTPClient.open
with sftp.open('path_to_remote_file', "w") as f: f.write(df.to_csv(index=False))