The Python Oracle

How to add a constant column in a Spark DataFrame?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi

--

Chapters
00:00 Question
01:12 Accepted answer (Score 303)
02:54 Answer 2 (Score 47)
04:05 Answer 3 (Score 2)
05:59 Thank you

--

Full question
https://stackoverflow.com/questions/3278...

Accepted answer links:
[SPARK-19254]: https://issues.apache.org/jira/browse/SP...

Answer 3 links:
[image]: https://i.stack.imgur.com/1RBwk.png

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #apachespark #dataframe #pyspark #apachesparksql

#avk47