pyspark.sql.Column.endswith¶
-
Column.
endswith
(other)¶ String ends with. Returns a boolean
Column
based on a string match.- Parameters
- other
Column
or str string at end of line (do not use a regex $)
- other
Examples
>>> df.filter(df.name.endswith('ice')).collect() [Row(age=2, name='Alice')] >>> df.filter(df.name.endswith('ice$')).collect() []