Skip to content

Commit

Permalink
Merge pull request #1223 from Quantipy/i1134-engine_empty_summary
Browse files Browse the repository at this point in the history
fix in make_dummy for delimited set arrays
  • Loading branch information
nitsrek authored Feb 7, 2019
2 parents b45ae78 + 2619689 commit 33810bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantipy/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(';')
Expand Down

0 comments on commit 33810bd

Please sign in to comment.