modin.pandas.Series.unstack¶
- Series.unstack(level=- 1, fill_value=None, sort=True) DataFrame[source]¶
Unstack, also known as pivot, Series with MultiIndex to produce DataFrame.
- Parameters:
level (int, str, list, default -1) – Level(s) of index to unstack, can pass level name.
fillna (int, str, dict, optional) – Replace NaN with this value if the unstack produces missing values.
sort (bool, default True) – Sort the level(s) in the resulting MultiIndex columns.
- Return type:
Snowpark pandas
DataFrame
Notes
Supports only integer
levelandsort = True. Internally, callspivot_tableormeltto performunstackoperation.Examples