Hello, currently I am working with Numpy exercises, here is the link:
I rather don’t have problem with Numpy logic, but in this exercise I don’t get the point how additional column is created.
zeros = np.zeros([taxi.shape, 1])
taxi_modified = np.concatenate([taxi, zeros], axis=1)
taxi.shape gives us number of rows in table, what is the function of 1? Which way is created table only filled with “0” values?
taxi_modified - concatenates 2 tables by adding value ‘0’ to the each row but it doesn’t create header of new column , am I right?