I scraped a website, created a PySpark DataFrame and now I would like to upload the DataFrame in a CSV format to my AWS S3 bucket without saving to disk.
I use PyCharm IDE (where I set my Access Key and Secret Access Key and selected the region. The program is written in Python.
I created the DataFrame like this:
df = spark.createDataFrame(pdf, schema=mySchema)
Thus, it is not yet a CSV file, because if I create a CSV that gets saved to disk.