We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pandas.DataFrame.unstack
fill_value
1 parent ae8ea3e commit 6879598Copy full SHA for 6879598
pandas/core/frame.py
@@ -9858,7 +9858,7 @@ def unstack(
9858
----------
9859
level : int, str, or list of these, default -1 (last level)
9860
Level(s) of index to unstack, can pass level name.
9861
- fill_value : int, str or dict
+ fill_value : scalar
9862
Replace NaN with this value if the unstack produces missing values.
9863
sort : bool, default True
9864
Sort the level(s) in the resulting MultiIndex columns.
0 commit comments