It's not in line 7 - BUT when you run the code you get the following message:
-> 1555 if Z.ndim != 2:
1556 raise ValueError("Arg ument Z must be 2-dimensional.")
1557 if np.any(np.isnan (Z)):
User Profile
Collapse
-
In line 7 - 'list' object has no attribute 'ndim'
import numpy as np
from numpy import arange
from mpl_toolkits.mp lot3d.axes3d import Axes3D
import matplotlib.pypl ot as plt
def map2(fn, A, B):
"""Map fn to corresponding elements of 2D arrays A and B."""
return[list(map(fn, Arow, Brow)) for (Arow, Brow) in zip(A, B)]
def score(A, B):
"""Compute the outcome of the race for...
No activity results to display
Show More
Leave a comment: