Cursusinhoud
Is the mushroom poisonous?
Is the mushroom poisonous?
The final data preparation
Taak
Swipe to start coding
- Create numpy array
Xfrom dataframeto_concantenatevalues using methodvaluesof Pandas DataFrame. - Create numpy array
yfrom indexes of dataframeto_concantenateusing methodindexand then method values on Pandas DataFrame. Method index returns an array of indexes of the dataframe. - For every values in
ychange letter'p'(poisonous) to0and'e'(edible) to1.
Oplossing
Mark tasks as Completed
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 2
AVAILABLE TO ULTIMATE ONLY