From 8b2ba4279c5a8d792152d1696292f427b741d3cf Mon Sep 17 00:00:00 2001
From: Bert Palm <bert.palm@ufz.de>
Date: Tue, 24 Mar 2020 22:27:04 +0100
Subject: [PATCH] minor bugfix with apply and strings

---
 dios/dios.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dios/dios.py b/dios/dios.py
index 72e83f4..f4533d8 100644
--- a/dios/dios.py
+++ b/dios/dios.py
@@ -591,7 +591,7 @@ class DictOfSeries:
                 s = func(self._data.at[c].values if raw else self._data.at[c], *args, **kwds)
                 new.append(s)
                 try:
-                    need_dios = True if isinstance(s, pd.Series) or len(s) > 1 else need_dios
+                    need_dios = True if not _is_scalar(s) else need_dios
                 except TypeError:
                     pass
 
-- 
GitLab