pandas.Series.explode — pandas 1.3.5 documentation
pandas.pydata.org › api › pandasExplode a DataFrame from list-like columns to long format. Notes. This routine will explode list-likes including lists, tuples, sets, Series, and np.ndarray. The result dtype of the subset rows will be object. Scalars will be returned unchanged, and empty list-likes will result in a np.nan for that row. In addition, the ordering of elements in ...
pandas.DataFrame.explode — pandas 1.3.5 documentation
pandas.pydata.org › pandasExplode a DataFrame from list-like columns to long format. Notes. This routine will explode list-likes including lists, tuples, sets, Series, and np.ndarray. The result dtype of the subset rows will be object. Scalars will be returned unchanged, and empty list-likes will result in a np.nan for that row. In addition, the ordering of rows in the ...
Explode in PySpark - Intellipaat Community
intellipaat.com › community › 16638Jul 25, 2019 · # .explode() # AttributeError: 'DataFrame' object has no attribute 'explode').show() # Trying without split print ' Only explode: ' DFsplit_explode = ( DF .select(explode(DF['word'])) # AnalysisException: u"cannot resolve 'explode(word)' due to data type mismatch: input to function explode should be array or map type, not StringType;").show()