Use arange to generate an array containing all the decades from 1940 to 2020

Viewed 27

Using Numpy, how can i produce an array that looks like this: array(['1940', '1950', '1960', '1970', '1980', '1990', '2000', '2010', '2020'], dtype='datetime64[Y]')

1 Answers
Related