Is there an Enum type in PySpark?

Viewed 657

I just wondered if there is an EnumType in PySpark/Spark.
I want to add constraints on StringTypes (or other types as well) to have certain values only in my DataFrame's schema.

0 Answers
Related