Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

using rlike in pyspark for numeric

//Filter DataFrame rows that has only digits of 'alphanumeric' column
import org.apache.spark.sql.functions.col
df.filter(col("alphanumeric")
    .rlike("^[0-9]*$")
  ).show()
Source by sparkbyexamples.com #
 
PREVIOUS NEXT
Tagged: #rlike #pyspark #numeric
ADD COMMENT
Topic
Name
5+6 =