7.1. Exercises
Chaining True/False
Practice Chaining
Instructions:
Running a coding exercise for the first time, could take a bit of time for everything to load. Be patient, it could take a few minutes.
When you see ____ in a coding exercise, replace it with what you assume to be the correct code. Run it and see if you obtain the desired output. Submit your code to validate if you were correct.
Make a plot using our Pokemon dataset by chaining actions sequentially.
Tasks:
- Chain the following methods in the order specified.
- First, rename the column
capture_rttocapture_rate. - Then, create a new column named
AD_totalby adding theattackanddefensecolumns from the pokemon dataset. - Save this in a dataframe object called
plot_df. - Finally use
.mark_circle()to plotAD_totalon the x-axis andcapture_rateon the y-axis. - Name this plot
pokemon_plot. - Use a new line for each method.