I have a dataframe df
, generating ProfileReport shown below:
profile = pandas_profiling.ProfileReport(
df, title=f"file_name Data Profile Report", minimal=True)
after profiling writing the output to local file system in ec2 machine successfully using below code:
profile.to_file('processedDataPath/file_name-profile.html')
Now I want to write the profile output to s3 bucket using awswrangler.s3
, but can't find appropriate awswrangler.s3.to_xxx() to write .html file in s3 location as below:
awswrangler.s3.to_xxx(profile, path='s3://analytics-storage-bucket/processedData/file_name-profile.html')
Looking for appropriate python method/code which can write the profiling output to S3 location.