for i, rec in enumerate(recommendations.iterrows()): AttributeError: 'NoneType' object has no attribute 'iterrows'