Login using Social Account
     Continue with GoogleLogin using your credentials
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.
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)
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...