Skip to content
Advertisement

How I can select a column where in another column I need a specific things

I have a pyspark data frame. How I can select a column where in another column I need a specific things. suppose I have n columns. for 2 columns I have

I want all column B. where column A is a. so

Advertisement

Answer

It’s just a simple filter:

which comes in many flavours, such as

or

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement