Open tyler3490 opened 2 years ago
This is happening no matter what the data is, large or small, on mac and pc. I commented out the best_and_worst_videos functionality and took the corresponding stuff out of the index.html template and at least got something to display.
I realized I never uploaded the problematic portion of code, line 284 is where the issue is.
When I print out the grouped['average_rating'].idxmax() its gives me the expected 10 items but they are all NaN
I suspect the iloc function then doesn't know what to index if all the values are the same.
Have you ever run into this issue? could I not have enough data? I am using a dataset with ~800 entries and another with ~20
I am getting an error with the dataframe iloc that is looking for the max and min values in the average ratings. It is saying that the positional Indexers are out of bounds for the .iloc.![image](https://user-images.githubusercontent.com/61132056/159496541-91b4ba44-9865-4a0c-8218-3c20580c75ad.png)