ilike (列)

大文字と小文字を区別しない SQL LIKE パターン マッチング。

構文

ilike(other)

パラメーター

パラメーター タイプ 説明
other str SQL LIKE パターン文字列

返品

列 (ブール値)

例示

df = spark.createDataFrame(
     [(2, "Alice"), (5, "Bob")], ["age", "name"])
df.filter(df.name.ilike('%Ice')).collect()
# [Row(age=2, name='Alice')]