Hi, Thanks for the detailed tutorial on flow_from_dataframe. This is a very friendly function.

I am using flow_from_dataframe on test data. Submission_df dataframe has only around 7000 images but when I run below code its outputing 24335 images which is total number of images in train folder. I have verified that x_col name mentioned below is same as in submission_df dataframe. I could not get what’s wrong with my code. Appreciate your suggestion on this.

Data Science | Machine Learning | Python. Visit https://pythonsimplified.com/ for interesting articles on Python and Machine Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store