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

Commit01132e4

Browse files
authored
Update README.es.md
1 parente68268a commit01132e4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

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

3-
Puedes usar la función`data_frame.loc` para filtrar registros usando operaciones lógicas como índices, así:
3+
Puedes usar la función`loc` para filtrar registros usando operaciones lógicas como índices, así:
44

55
```python
6-
#conseguir personas mayores de 18 años
7-
data_frame.loc[data_frame['age']<18]
6+
#Conseguir personas mayores de 18 años
7+
data_frame.loc[data_frame['age']>18]
88
```
99

1010
##📝 Instrucciones:
1111

1212
1. Usa la misma variable de DataFrame que usaste en el ejercicio anterior.
13-
2. Usando la función`loc`, imprime en el terminal todos los pokemons con un ataque de mas de 80.
1413

15-
##Resultado Esperado:
14+
2. Usando la función`loc`, imprime en el terminal todos los pokemons con un ataque de más de 80.
15+
16+
##💻 Resultado Esperado:
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