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

Multiple error related to indices occurs while running code #2

Open
shikha2mehta opened this issue Jun 28, 2018 · 0 comments
Open

Multiple error related to indices occurs while running code #2

shikha2mehta opened this issue Jun 28, 2018 · 0 comments

Comments

@shikha2mehta
Copy link

Using Python version 3.6
In Cell 43 - ERROR

IndexError Traceback (most recent call last)
in ()
4 pl.figure()
5 pl.plot(zts.iloc[:, i], '-+', label = "ts%i"%i)
----> 6 pl.plot(split9_ext[:, i], label = "paa%i"%i)
7 pl.legend(loc = "upper left")

IndexError: too many indices for array

In Cell 23 & 24 - ERROR


AxisError Traceback (most recent call last)
in ()
----> 1 sax_transform(ts, 7, "abcd")

in sax_transform(ts, n_pieces, alphabet)
22 for ts_value in ts_values])
23 paa_ts = paa_transform(znormalization(ts), n_pieces)
---> 24 return np.apply_along_axis(translate, 0, paa_ts)

~\Anaconda3\lib\site-packages\numpy\lib\shape_base.py in apply_along_axis(func1d, axis, arr, *args, **kwargs)
114 arr = asanyarray(arr)
115 nd = arr.ndim
--> 116 axis = normalize_axis_index(axis, nd)
117
118 # arr, with the iteration axis at the end

AxisError: axis 0 is out of bounds for array of dimension 0

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

1 participant