How to transform JSON strings in columns of dataframe in PySpark?
问题 I have a pyspark dataframe as shown below +--------------------+---+ | _c0|_c1| +--------------------+---+ |{"object":"F...| 0| |{"object":"F...| 1| |{"object":"F...| 2| |{"object":"E...| 3| |{"object":"F...| 4| |{"object":"F...| 5| |{"object":"F...| 6| |{"object":"S...| 7| |{"object":"F...| 8| The column _c0 contains a string in dictionary form. '{"object":"F","time":"2019-07-18T15:08:16.143Z","values":[0.22124142944812775,0.2147877812385559,0.16713131964206696,0.3102800250053406,0