Bugfix in Measures.get_point_statistics for multivariate support

This commit is contained in:
Petrônio Cândido de Lima e Silva 2018-06-28 14:15:30 -03:00 committed by GitHub
parent ca117e05c7
commit d181493c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,6 +312,10 @@ def get_point_statistics(data, model, **kwargs):
if indexer is not None:
ndata = np.array(indexer.get_data(data))
elif model.is_multivariate:
if not isinstance(data, pd.DataFrame):
raise ValueError("Multivariate data must be a Pandas DataFrame!")
ndata = data
else:
ndata = np.array(data)