green-analyst-32514
11/16/2022, 6:03 PMS3Error: An error occurred (InvalidToken) when calling the PutObject operation: The provided token is malformed or otherwise invalid.@step
def upload_df_to_s3(self):
    with S3(s3root='<s3://my-bucket/prefix/>') as s3:
        bytes_to_upload = self.df.to_csv(None, index=False).encode()
        s3.put('df.csv', bytes_to_upload)
    self.next(self.next_step)