What I have -
- I have a spark-sql dataframe(df), which has a column named "Country"+other columns also. df dataframe
- I have a list of 24 countries.(Note: This can be converted into a dataframe or table, whatever can be feasible for the solution) listcountry = austria,india,russia,france,germany
What is my problem? I need to create a new column('remaining countries') in 'df' which will be having all the countries out of the given 24 countries in the list, except the one which is available in df.Country
Expected Solution: expected solution
Note: I prefer pyspark/spark-sql/sql in this solution.