QuestionQ39
VerifiedPrepare dataYou are building a solution by using a Fabric notebook.
You have a Spark DataFrame assigned to a variable named df. The DataFrame returns four columns.
You need to convert the data type of a string column named Age to integer. The solution must return a DataFrame that includes all columns.
How should you complete the code? Each value can be used once, more than once, or not at all.
Drag & Drop
df.("age", ("age").("int")).show()
Community Discussion