D-hash-pirit
D-hash-pirit

Reputation: 437

How to save pandas.DataFrame.to_csv to a weblink?

I want to save my dataframe to a weblink like on a github repository. Any idea, if this is possible. Simply to output a csv from a dataframe, we do

 df.to_csv('output.csv')

Now, I am working on a virtual environment and want to save output file in a repository/any cloud storage. Any suggestion would help.

Upvotes: 1

Views: 258

Answers (1)

Hari_pb
Hari_pb

Reputation: 7406

Unfortunately, we can't output dataframe to a web link directly but we can use some libraries to store in cloud like S3 - AWS. You may try Boto library in python to output and save dataframes to S3 storage on AWS. You may read the documentation here Link: https://github.com/boto/boto3

Upvotes: 1

Related Questions