I got this dataframe:
+------+-----------+--------------------+
|NewsId| expNews| transArr|
+------+-----------+--------------------+
| 1| House|[house, HH, AW1, S] |
| 1|Republicans|[republicans, R, ...|
| 1| Fret|[fret, F, R, EH1, T]|
| 1| About|[about, AH0, B, A...|
I want to remove every element at index 0 in the arrays in column transArr. Excpected result:
+------+-----------+--------------+
|NewsId| expNews| transArr|
+------+-----------+--------------+
| 1| House|[HH, AW1, S] |
| 1|Republicans|[R, ... |
| 1| Fret|[F, R, EH1, T]|
| 1| About|[AH0, B, A... |
Is there an easy way to to do this with Spark and Scala?