QuestionQ21
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsA data scientist at an e-commerce company is working with user data obtained from its subscriber database and stored in a DataFrame named df_user. Before processing the data further, the data scientist wants to create another DataFrame, df_user_non_pii, containing only the non-PII columns. The PII columns in df_user are first_name, last_name, email, and birthdate.
Which code snippet can be used to meet this requirement?
Community Discussion