Search⌘ K

Final Quiz

Review your understanding of applying complex functions in Pandas by completing this final quiz. Reinforce your skills with apply and map methods before moving on to DataFrame merging and concatenation.

We'll cover the following...

Final apply/map quiz

1.

How can you create a new column containing the value in plays multiplied by 2? (Choose all that apply.) Multi-select

A.

df['new_plays'] = df['plays'] * 2

B.

df['new_plays'] = df.apply(lambda x: x['plays'] * 2, axis=1)

C.

df['new_plays'] = df.apply(lambda x: x['plays'] * 2, axis=0)

D.

df['new_plays'] = df['plays'].map(lambda x: x*2)


1 / 3

Hopefully, you got the ...