Column.
substr
Return a Column which is a substring of the column.
Column
start position
length of the substring
Examples
>>> df.select(df.name.substr(1, 3).alias("col")).collect() [Row(col='Ali'), Row(col='Bob')]
previous
pyspark.sql.Column.startswith
next
pyspark.sql.Column.when