From 26196897617e382c91386141baa11b07e73eb9c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kerstin=20M=C3=BCller?= <kerstin.mueller@yougov.de>
Date: Thu, 7 Feb 2019 09:57:42 +0100
Subject: [PATCH] fix in make_dummy for delimited set arrays

---
 quantipy/core/dataset.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quantipy/core/dataset.py b/quantipy/core/dataset.py
index baeea38a6..f382a9d4d 100644
--- a/quantipy/core/dataset.py
+++ b/quantipy/core/dataset.py
@@ -6915,7 +6915,7 @@ def make_dummy(self, var, partitioned=False):
                     codes.extend(self._data[i].dropna().unique().tolist())
                 codes = sorted(list(set(codes)))
             dummy_data = []
-            if self._is_multicode_array(items[0]):
+            if any(self._is_multicode_array(i) for i in items):
                 for i in items:
                     try:
                         i_dummy = self[i].str.get_dummies(';')