title: 'ImageDataGenerator' object has no attribute 'flow_from_dataframe'
body: <p>I am trying to build an image classifier for the Cancer Detection Kaggle Challenge. This is the code that I am using. </p>
  
  <pre><code>`train_datagen = ImageDataGenerator(rescale=1./255,
                                     validation_split=0.15
  )
  
  test_datagen = ImageDataGenerator(rescale=1./255)
  
  train_path = MAIN_DIR + '/CancerTrain'
  valid_path = MAIN_DIR + '/CancerTrain'
  
  
  
  train_generator = train_datagen.flow_from_dataframe(
                  dataframe = train_labels,
                  directory=train_path,
                  x_col = 'id',
                  y_col = 'label',
                  has_ext=False,
                  subset='training',
                  target_size=(96, 96),
                  batch_size=64,
                  class_mode='binary'
                  )
  
  validation_generator = train_datagen.flow_from_dataframe(
                  dataframe=df,
                  directory=valid_path,
                  x_col = 'id',
                  y_col = 'label',
                  has_ext=False,
                  subset='validation', # This is the trick to properly separate train and validation dataset
                  target_size=(96, 96),
                  batch_size=64,
                  shuffle=False,
                  class_mode='binary'
                  )`
  </code></pre>
  
  <p>However, whenever I run it I get this error:</p>
  
  <pre><code>`AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-22-eb9c70d0ad1c&gt; in &lt;module&gt;()
       15                                                    )
       16 
  ---&gt; 17 train_generator = train_datagen.flow_from_dataframe(
       18                 dataframe = train_labels,
       19                 directory=train_path,
  
  AttributeError: 'ImageDataGenerator' object has no attribute 'flow_from_dataframe'`
  </code></pre>
  
  <p>I have looked everywhere and can't seem to find a solution. Is the method called something different now?</p>