I am doing this exercise (question 6) https://www.codecademy.com/paths/data-science/tracks/data-processing-pandas/modules/dspath-agg-pandas/projects/pandas-shoefly-ab-test
The correction that is proposed is:
clicks_pivot[‘percent_clicked’] = clicks_pivot[True] / (clicks_pivot[True] + clicks_pivot[False])
But I did (and it did not work):
clicks_pivot[‘percent_clicked’] = clicks_pivot[‘True’] / (clicks_pivot[‘True’] + clicks_pivot[‘False’])
Could someone tell me why the second one is not good please? I get a “KeyError: ‘True’” .
Is is coming from the pivot that was done in the question 5 before?
Why can we not put things between ’ ’ as it was the case so far?