Project - Stock Closing Price Prediction using Deep Learning, TensorFlow2 & Keras

You are currently auditing this course.
16 / 32

Getting the Modified Data

Let us remove the rows that belong to the holidays using the drop() method on the yahoo_data data frame.

Note:

drop() metod is used to drop specified labels from rows or columns.

INSTRUCTIONS
  • Let us first see the shape before dropping the holidays. Use shape to view the shape of yahoo_data.

    print(<< your code comes here >>.shape)
    
  • Use drop on the data frame yahoo_data and pass holidays as an argument to the method. Store the thus obtained data in the modified_df data frame.

    << your code comes here >> = yahoo_data.<< your code comes here >>(holidays)
    
  • Use shape to view the shape of modified_data.

    print(<< your code comes here >>.shape)
    
Get Hint See Answer

Loading comments...