The .csv file I am using will have multiple sheets (Dynamic sheet names).
I have to create dataFrames for all the sheets
The syntax I am using:
df = self.spark.read
.option("sheetName", None)
.option('header', 'true')
.csv(file_path)
sheet_names = df.keys()
print(sheet_names)
Error:
'DataFrame' object has no attribute 'keys'