From bf29cb041f91e2ba02ba7fb803bba4080389ec0f Mon Sep 17 00:00:00 2001 From: KevsterAmp Date: Mon, 19 May 2025 21:03:44 +0800 Subject: [PATCH] change fill_value param to scalar --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6158e19737185..16a45322a556f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9854,7 +9854,7 @@ def unstack( ---------- level : int, str, or list of these, default -1 (last level) Level(s) of index to unstack, can pass level name. - fill_value : int, str or dict + fill_value : scalar Replace NaN with this value if the unstack produces missing values. sort : bool, default True Sort the level(s) in the resulting MultiIndex columns.