'Pyspark : How to transform dataframe without the caracter

Matricule (type array)
[TKI1]
[TKI4]

I will obtain this dataframe

Matricule (type string)
TKI1
TKI4


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source