Pyspark - explode the nested data

less than 1 minute read

Pyspark can explode the nested structure in object

1
2
3
4
import pyspark.sql.functions as fn

df = df_raw \
  .select('date', 'value', fn.explode(df_raw.groups).alias('group'))

Categories:

Updated: