I have a data frame that contains a date column of this format (1990-02-28) i want to count the number of rows that contains the year 1996 (doesnt matter the month/day).
For Example:
DF
1. 1946-01-21 -0.7062
2. 1986-01-22 0.5029
3. 1923-01-23 0.5657
4. 1920-01-25 0.4723
5. 1996-01-26 -0.5384
6. 1996-01-27 0.717
the response would be 2 (for #5,#6)
Thanks