puffbird.FrameEngine.expand_col¶
-
FrameEngine.
expand_col
(col, reset_index=True, dropna=True, handle_diff=True)[source]¶ Expand a column that contain
DataFrame
orSeries
object types to create a single long-formatDataFrame
.- Parameters
- colstr
The “data column” to expand.
- reset_indexbool, optional
Whether to reset the index of the new long-format
DataFrame
. Defaults to True.- dropnabool, optional
Whether to drop NaNs in the “data column”. If False and NaNs exist, this will currently result in an error. Defaults to True.
- handle_diffbool, optional
Handle indices across column cells, if they cannot be concatenatted, instead of throwing an error. Defaults to True.
- Returns
See also