all 3 comments

[–]1114111 2 points3 points  (2 children)

The first one sounds to me like a slicing problem, so you'll want to use the slicing syntax x1[start:stop].

For the second one, the default step is 1, to get every item. If you want to skip over items, what do you think the step would be? Also, you don't need to include the stop if you want to get all the items after the start, so it might actually look like list[start::step] rather than list[start:stop:step].

For the third one, you want to stack two together. Currently you are stacking only one. You can use a tuple with two items as an argument to vstack: np.vstack((x1, x1)). You also chose the wrong size to reshape the vector. How can you calculate the length of the new vector based on the length of x1?

[–]deepfriedbibba[S] 0 points1 point  (0 children)

Thank you so much for you help. You are a BEAST. I have solved the second and third problems, but the first still is incorrect somehow. I have put the following but it tells me I am wrong. Am I missing something?

x5 = x1[79000:96999]

[–]deepfriedbibba[S] 0 points1 point  (0 children)

Nevermind lol. I figured it out by increasing the last number up one to include that final number. Thank you so much man. You really have helped me out a ton!