I'm practicing some statistical analysis on a data frame of la liga record, in which i'm trying to find teams that started playing between 1930-1980. But there are few rows that have dates like 1941-42, 1975-76. I have the dataset like this
I have tried this, but this results in error
dfnew = df[(df['Debut']>1930) & (df['Debut']<1980)]