I want to read the data from S3 bucket and the result will show like this picture bellow. I want to ensure that the compiler has a header in the raw data and can estimate the data types for all columns. So what are suitable arguments for this?
The code is df = (spark.read.csv("s3a://raw-recipes-clean-upgrad/RAW_recipes_cleaned.csv", argument to show the header, argument to estimate the data types))
I'm stuck with this. Any recommendation for me? Thankyou