Question: what is wrong with this pycharm code = import numpy as np data = np.loadtxt('C:UserskatieOneDriveIN300_Dataset2.txt') data2D = np.reshape(data, (2500,100)) print(Here is the 2D array: )

what is wrong with this pycharm code = import numpy as np data = np.loadtxt('C:\Users\katie\OneDrive\IN300_Dataset2.txt') data2D = np.reshape(data, (2500,100)) print("Here is the 2D array: ") print(data2D) data3D = np.reshape(data, (2500, 10, 10)) print("Here is the 3D array: ") print(data3D) slicedData = data2D[2:5:10] print("Here is the sliced 2D array: ") print(slicedData)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!