index-error Questions

4

Solved

I am implementing fft and when I shuffle the data elements using bit reversal, I get the following error: IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and inte...
Reeba asked 22/1, 2016 at 17:29

3

Solved

I am following a tutorial and I don't know why I got this error: <ipython-input-61-d59f7a5a07ab> in extract_featuresets(ticker) 2 tickers, df = process_data_for_labels(ticker) 3 df['{}_tar...
Fenny asked 30/8, 2020 at 7:41

9

Solved

I want to get the first match of a regex. In the following case, I have a list: text = 'aa33bbb44' re.findall('\d+',text) # ['33', '44'] I could extract the first element of the list: text = 'aa33...
Encephalomyelitis asked 26/7, 2016 at 1:19

4

I ran a code that I wrote and I am getting this message: 'index 0 is out of bounds for axis 0 with size 0' index 0 means the first value in the array, but I can't figure out what axis 0 and size 0...
Seaway asked 5/1, 2017 at 18:37

5

Solved

I have been trying out an open-sourced personal AI assistant script. The script works fine but I want to create an executable so that I can gift the executable to one of my friends. However, when I...
Middling asked 30/10, 2021 at 3:6

3

Solved

I'm trying to sum the values of a list using a for loop. This is my code: def sumAnArray(ar): theSum = 0 for i in ar: theSum = theSum + ar[i] return theSum I get the following error: line 13, ...
Quarterstaff asked 19/8, 2018 at 16:0

7

Solved

I'm telling my program to print out line 53 of an output. Is this error telling me that there aren't that many lines and therefore can not print it out?
Kirwin asked 8/7, 2009 at 15:3

5

Solved

Executing import numpy as np t1 = np.arange(1,10) t2 = np.arange(11,20) t3 = np.concatenate((t1,t2),axis=1) results in a Traceback (most recent call last): File "<ipython-input-264-85078...
Pasha asked 15/2, 2016 at 3:26

0

I am trying to fill out this form automatically using Selenium. The form consists out of two pages, which both need to be filled. One proceeds to the second page by clicking the orange button stati...
Issy asked 27/7, 2017 at 15:17

1

Solved

I have the following data and I am trying the following code: Name Sensex_index Start_Date End_Date AAA 0.5 20/08/2016 25/09/2016 AAA 0.8 26/08/2016 29/08/2016 AAA 0.4 30/08/2016 31/08/2016 AAA...
Arianaariane asked 7/7, 2017 at 9:6

0

Handling a list product of 100x100 size is fine in python: >>> import itertools >>> import numpy as numpy >>> nested_loop_iter = itertools.product(range(100), range(100)...
Oleic asked 21/11, 2016 at 7:1
1

© 2022 - 2024 — McMap. All rights reserved.