reading CSV files and concatenate files and then creating one single CSV file using data frame passed to pandas to_csv function below code shows
csv_buffer = StringIO()
data.to_csv(csv_buffer, index=False, encoding='utf-8')
s3_resource.Object(bucket, path_save_report+report_name).put(Body=csv_buffer.getvalue())
output CSV file
test123" hello world