Student Alcohol Consumption¶
In [ ]:
Step 3. Assign it to a variable called df.¶
In [ ]:
Step 4. For the purpose of this exercise slice the dataframe from 'school' until the 'guardian' column¶
In [ ]:
Step 5. Create a lambda function that will capitalize strings.¶
In [ ]:
Step 6. Capitalize both Mjob and Fjob¶
In [ ]:
Step 7. Print the last elements of the data set.¶
In [ ]:
Step 8. Did you notice the original dataframe is still lowercase? Why is that? Fix it and capitalize Mjob and Fjob.¶
In [ ]:
Step 9. Create a function called majority that returns a boolean value to a new column called legal_drinker (Consider majority as older than 17 years old)¶
In [ ]:
In [ ]:
In [ ]:
In [ ]: