We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wish we can support terms ending with line anchors in regexp_extract function:
from pyspark.sql.functions import regexp_extract from pyspark.sql.types import StructType, StructField, StringType schema = StructType([ StructField('id', StringType(), True), StructField('text', StringType(), True) ]) data = [('1', 'aaa12'), ('2', 'bbb123'), ('3', 'ccc')] df = spark.createDataFrame(data=data, schema=schema) result = df.withColumn("numbers", regexp_extract("text", "(12$|123$)", 1)) result.show()
The text was updated successfully, but these errors were encountered:
This is a duplicate of a #6882
Sorry, something went wrong.
No branches or pull requests
I wish we can support terms ending with line anchors in regexp_extract function:
The text was updated successfully, but these errors were encountered: