jeudi 17 juin 2021

PySpark add column to Dataframe having random Integers within range [duplicate]

How can I add a column to a PySpark Dataframe that has random integer values within a given range?

The values should be randomly assigned by row.

For example, add column "randkey" with whole number values between 1 and 100.




Aucun commentaire:

Enregistrer un commentaire