فهرست منبع

truth value of a DataFrame is ambiguous (#1558)

* truth value of a DataFrame is ambiguous

* truth value of a DataFrame is ambiguous

* truth value of a DataFrame is ambiguous

---------

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Fred Lefévère-Laoide 10 ماه پیش
والد
کامیت
d754750bae
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      taipy/gui/gui.py

+ 1 - 1
taipy/gui/gui.py

@@ -1046,7 +1046,7 @@ class Gui:
                 if isinstance(newvalue, float) and math.isnan(newvalue):
                     # do not let NaN go through json, it is not handle well (dies silently through websocket)
                     newvalue = None
-                if newvalue:
+                if newvalue is not None and not isinstance(newvalue, str):
                     debug_warnings: t.List[warnings.WarningMessage] = []
                     with warnings.catch_warnings(record=True) as warns:
                         warnings.resetwarnings()