Let's say I have an array of years created like
years = np.arange(2024,2051,1)
And I have an array of months created like
months = np.arange(1,13,1)
What is the most pythonic way of arriving at an elementwise concatenation such that the end result is
[[2024,1],[2024,2],[2024,3]...[2024,12], [2025,1],[2025,2],[2025,3]...[2025,12], ... ]
?
Thanks
np.zeros((n.m,2))array, and assigning the arrays to it? That's a kind of insertion.