I want to write the csv-file from pandas dataframe on remote machine connecting via smtp-ssh. Does anybody know how add "storage_options" parameter correctly?
Pandas documentation says that I have to use some dict as parameter's value. But I don't understand which exactly.
hits_df.to_csv('hits20.tsv', compression='gzip', index='False', chunksize=1000000, storage_options={???})
Every time I got ValueError: storage_options passed with file object or non-fsspec file path
What am I doing wrong?
If you do not have cloud storage access, you can access public data by specifying an anonymous connection like this
Else one should pass
storage_options
in dict format, you will getname
andkey
by your cloud VM host (including Amazon S3, Google Cloud, Azure, etc.)