Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite68268a

Browse files
authored
Update README.md
1 parentbe16692 commite68268a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎.learn/exercises/05.6-loc-function/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
#`05.6` Loc Function
22

3-
You can also use the`data_frame.loc` function to filter records using logical operations as indexes, like this:
3+
You can also use the`loc` function to filter records using logical operations as indexes, like this:
44

55
```python
6-
#get peoplemore than 18 years old
6+
#Get peopleolder than 18 years old
77
data_frame.loc[data_frame['age']>18]
88
```
99

1010
##📝 Instructions:
1111

1212
1. Use the same DataFrame variable you used in the previous exercise.
13+
1314
2. Using the`loc` function, print on the terminal all pokemons with an attack of more than 80.
1415

15-
##Expected Result:
16+
##💻Expected Result:
1617

1718
```bash
1819
# Name Type 1 Type 2 HP Attack Defense Sp. Atk Sp. Def Speed Generation Legendary
@@ -27,4 +28,4 @@ data_frame.loc[data_frame['age'] > 18]
2728
797 720 HoopaHoopa Confined Psychic Ghost 80 110 60 150 130 70 6 True
2829
798 720 HoopaHoopa Unbound Psychic Dark 80 160 60 170 130 80 6 True
2930
799 721 Volcanion Fire Water 80 110 120 130 90 70 6 True
30-
```
31+
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp