7

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.

  • Might be a duplicate of https://stackoverflow.com/questions/44723938/enum-equivalent-in-spark-dataframe-parquet – w177us May 18 '21 at 15:22

0 Answers0