While on task 289-6
I expected these two codes to produce the same result but only Option 1 is accepted. What is the difference between the two? How to interpet the double square brackets from Option 2? Thanks.
Option 1: row_0 = taxi[0]
–>
array([ 2016, 1, 1, 5, 0, 2, 4, 21,
2037, 52, 0.8, 5.54, 11.65, 69.99, 1])
Option 2: row_0 = taxi[0:1]
–> array([[ 2016, 1, 1, 5, 0, 2, 4, 21,
2037, 52, 0.8, 5.54, 11.65, 69.99, 1]])