PySpark lit() – Add Literal or Constant to DataFrame
PySpark SQL functions lit() and typedLit() are used to add a new column to DataFrame by assigning a literal or constant value. Both these functions return Column type as return…
0 Comments
August 12, 2020