As the question suggests, I have a list of s3 paths in a list
s3_paths = ["s3a://somebucket/1/file1.xml", "s3a://somebucket/3/file2.xml"]
I'm using PySpark and want to find how I can load all these XML files in dataframe together? Something similar to the example shown below.
df = spark.read.format("com.databricks.spark.xml").option("rowTag", "head").load(s3_paths)
I'm able to read a single file but want to find the best way to load all files.