UnboundLocalError is input is a Dataframe
See
@@ -103,7 +103,7 @@ def _standardize_input_data(data, names, shapes=None,
arrays = data
elif data.__class__.__name__ == 'DataFrame':
# test if data is a DataFrame, without pandas installed
- data = data.values
+ arrays = data.values
else:
if not hasattr(data, 'shape'):
raise TypeError('Error when checking model ' +
