Incorrect Data Frame creation #775
Unanswered
akshitarora4259
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am working with an Excel file, which contains data in the following format:
When I am creating a data frame using this Excel file using the following code snippet:
df = spark.read.format("com.crealytics.spark.
incorrect dataframe excel.xlsx
excel").option("header", False).option("dataAddress", "'Sheet3'!").load("file.xlsx")
Though, my data contains 5 columns, in the final data frame I can see only 1 column.
Can you please help me resolve this issue, so I can get the expected data frame containing all the columns of the data.
I am attaching the same of the excel file for reference.
Beta Was this translation helpful? Give feedback.
All reactions