Skip to content

Commit 42f5bb7

Browse files
committed
Merge branch 'donot-use-hardcoded-indexes' of https://github.com/aquaraga/pandas_exercises-1 into aquaraga-donot-use-hardcoded-indexes
2 parents 3bf207a + 8c1d985 commit 42f5bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

02_Filtering_&_Sorting/Euro12/Exercises_with_Solutions.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@
13201320
}
13211321
],
13221322
"source": [
1323-
"euro12[5:7]"
1323+
"euro12[euro12.Team.str.startswith('G')]"
13241324
]
13251325
},
13261326
{
@@ -2170,7 +2170,7 @@
21702170
"source": [
21712171
"# .loc is another way to slice, using the labels of the columns and indexes\n",
21722172
"\n",
2173-
"euro12.loc[[3,7,12] , ['Team','Shooting Accuracy']] "
2173+
"euro12.loc[euro12.Team.isin(['England', 'Italy', 'Russia']), ['Team','Shooting Accuracy']]"
21742174
]
21752175
}
21762176
],

0 commit comments

Comments
 (0)