pyspark.sql.Column.startswith

列。 startswith ( 其他:联盟(,LiteralType,DecimalLiteral,DateTimeLiteral] )→列

字符串开始的。返回一个布尔值基于字符串匹配。

参数
其他 或str

字符串的开始行(不使用一个正则表达式^)

例子

> > >df过滤器(df的名字startswith(“基地”))收集()行(= 2岁name = '爱丽丝'))> > >df过滤器(df的名字startswith(“^艾尔。”))收集()[]