Skip to content

Commit a13afa1

Browse files
authored
Replace gdpPercap_1972 with 1972 in code examples
Updated code blocks in the pandas essential episode to use '1972' instead of 'gdpPercap_1972'.
1 parent be68a01 commit a13afa1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

episodes/07-pandas_essential.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ plt.ylabel('GDP per capita ($)')
297297

298298
Which of the following blocks of code should replace the `<BLOCK>` in the code above?
299299

300-
1. `.loc['Sweden':'Iceland','gdpPercap_1972':]`
301-
2. `.loc['gdpPercap_1972':,['Sweden','Iceland']]`
302-
3. `.loc[['Sweden','Iceland'],'gdpPercap_1972':]`
303-
4. `.loc['gdpPercap_1972':,'Sweden':'Iceland']`
300+
1. `.loc['Sweden':'Iceland','1972':]`
301+
2. `.loc['1972':,['Sweden','Iceland']]`
302+
3. `.loc[['Sweden','Iceland'],'1972':]`
303+
4. `.loc['1972':,'Sweden':'Iceland']`
304304

305305
::::::::::::::: solution
306306

0 commit comments

Comments
 (0)