Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can you perform type casting for specific columns when converting a pandas-on-Spark DataFrame to a PySpark DataFrame using the astype method?
A
Type casting is automatic; no additional steps are needed.
B
Apply astype to specific columns using psdf[‘column_name‘].astype(‘desired_type‘).
C
Use the astype method on the entire DataFrame.
D
Type casting is not supported in pandas-on-Spark.