Relative Content

Tag Archive for pythondictionaryapache-sparktypes

How to create PySpark column of dictionary type with value not of any fixed type?

This is a pyspark code. I am creating two columns, ‘item’ and ‘properties’.
‘item’ column is of String type and ‘properties’ column is of dictionary type where the type of key is String but the type of value is not fixed. How do I implement this?
Here I have written value type of Integer, but I require that value be of any type. What type should I use for that?