Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show() Exception: Data must be 1-dimensional #20

Closed
pedrinimm opened this issue May 24, 2016 · 2 comments
Closed

show() Exception: Data must be 1-dimensional #20

pedrinimm opened this issue May 24, 2016 · 2 comments

Comments

@pedrinimm
Copy link

When It tries to show any result from the som like: codebook, cluster, or hitmap the normalisation method estimates the mean and the std with pandas. However since data is not 1 dimensional and exception gets triggered

@sevamoo
Copy link
Owner

sevamoo commented Jun 2, 2016

could you please show your code?

@sevamoo sevamoo closed this as completed Jun 22, 2016
@janbalaz
Copy link

janbalaz commented Apr 1, 2018

Hi,
happened to me as well. Problem was I used regular Python array instead of Numpy array. I wrapped my data as follows:

import numpy as np
data = np.array(list_data)

Not sure if it's your case as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants