Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires In

  Enroll Now

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)
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...