Skip to content

Commit

Permalink
forgot to push right code
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bernhardsson committed Jun 28, 2018
1 parent 47e03f9 commit 4b33e0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions convoys/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def get_arrays(data, features=None, groups=None, created=None,

# First, construct either the `X` or the `G` array
if features is None and groups is None:
if 'groups' in data.columns:
groups = 'groups'
if 'group' in data.columns:
groups = 'group'
elif 'features' in data.columns:
features = 'features'
else:
raise Exception('Neither of the `features` or `groups` parameters'
raise Exception('Neither of the `features` or `group` parameters'
' was provided, and there was no `features` or'
' `groups` dataframe column')
if groups is not None:
Expand Down

0 comments on commit 4b33e0e

Please sign in to comment.