The problem is in this line.
Method holidays.CountryHoliday returns a dict of datetime.date : str, but pandas dataframe may contain datetime.datetime types, thus it gives wrong result. It tries to compare datetime and date, of course it gives "False".
To fix it we have to add .dt.date attributes to pandas Series and it will work fine.
https://github.com/sberbank-ai-lab/LightAutoML/blob/master/lightautoml/transformers/datetime.py#L272
The problem is in this line. Method![image](https://user-images.githubusercontent.com/59923609/143451912-52ec5de6-d1eb-4b79-91c7-12b8ed56db67.png)
holidays.CountryHoliday
returns a dict ofdatetime.date : str
, but pandas dataframe may containdatetime.datetime
types, thus it gives wrong result. It tries to compare datetime and date, of course it gives "False".To fix it we have to add![image](https://user-images.githubusercontent.com/59923609/143452250-a8cf0829-80fe-4591-88c4-77d2ae4a497f.png)
.dt.date
attributes to pandas Series and it will work fine.