Skip to content

Commit 394cb67

Browse files
authored
Update module1.md
1 parent 933b3f2 commit 394cb67

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

chapters/en/module1.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,15 @@ Are you forgetting that in the Python language we start counting at 0?
635635
If I wanted the rows `lemon` and `cantaloupe` but only the columns `colour`, `weight` and `seeds` in that order, what would my code look like if I was using index position?
636636

637637
<choice id="2" >
638+
639+
</opt>
640+
641+
<opt text='<code>fruit_salad.iloc[[9, 2], [1, 7, 3]]</code>' correct="true">
642+
643+
Great Work!
644+
645+
</opt>
646+
638647
<opt text='<code>fruit_salad.iloc[[lemon, cantaloupe], [colour, weight, seeds]]</code>'>
639648

640649
We need to use the index position for this question and when using `.iloc[]`.
@@ -645,13 +654,7 @@ We need to use the index position for this question and when using `.iloc[]`.
645654

646655
Great! You don't need to specify the second column part because by default the code will slice all the columns.
647656

648-
</opt>
649-
650-
<opt text='<code>fruit_salad.iloc[[9, 2], [1, 7, 3]]</code>' correct="true">
651-
652-
Great Work!
653657

654-
</opt>
655658

656659
<opt text= '<code>fruit_salad[[9, 2], [1, 7, 3]]</code>' >
657660

@@ -786,19 +789,20 @@ Which of the following columns contain numerical data?
786789
Maybe it would be a good idea to take a look back at the slides again.
787790

788791
</opt>
792+
793+
<opt text='<code>water-content</code>, <code>weight</code>' correct="true">
789794

790-
<opt text='<code>colour</code>, <code>seed</code>, <code>water-content</code>, <code>weight</code>' >
791-
792-
Some of the columns maybe in here though!
795+
This looks great! Well done!
793796

794797
</opt>
795798

796-
<opt text='<code>water-content</code>, <code>weight</code>' correct="true">
799+
<opt text='<code>colour</code>, <code>seed</code>, <code>water-content</code>, <code>weight</code>' >
797800

798-
This looks great! Well done!
801+
Some of the columns maybe in here though!
799802

800803
</opt>
801804

805+
802806
<opt text='All of the columns are categorical' >
803807

804808
Maybe it would be a good idea to take a look back at the slides again.

0 commit comments

Comments
 (0)