How to convert the pandas expression to pyspark , which it seems not working ,then convert the dataframe to an array ?
+-