python pandas包的爆炸函数explode - 知乎
https://zhuanlan.zhihu.com/p/383157894pandas explode的文档链接如下: [ pandas explode ] ( pandas.pydata.org/panda ) 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 …
pandas-explode · PyPI
https://pypi.org/project/pandas-explode28.08.2019 · pandas_explode. author: Oren Ovadia. Overview. Explode utility for Pandas dataframes (similar to UNNEST or explode) Examples import pandas as pd import pandas_explode pandas_explode. patch # adds a `df.explode` method to all DataFrames df = pd.