I want to check if last two values of the array in PySpark Dataframe is [1, 0] and update it to [1, 1]
Input Dataframe
Column1 Array_column
abc [0,1,1,0]
def [1,1,0,0]
adf [0,0,1,0]
Output Dataframe
Column1 Array_column
abc [0,1,1,1]
def [1,1,0,0]
adf [0,0,1,1]