メインコンテンツまでスキップ

rlike (列)

SQL RLIKE (正規表現 LIKE) パターンマッチング。

構文​

Python
rlike(other)

パラメーター​

パラメーター

Type

説明

other

str

正規表現パターン文字列

パラメーター

Type

説明

other

str

正規表現パターン文字列

戻り値​

列(ブール値)

例​

Python
df = spark.createDataFrame(
[(2, "Alice"), (5, "Bob")], ["age", "name"])
df.filter(df.name.rlike('ice$')).collect()
Output
# [Row(age=2, name='Alice')]
このページの見出し