Skip to content

Commit 194ae56

Browse files
xonomaajcr
authored andcommitted
Patch: Add non-ix alternative solution to Puzzle 8 (#5)
* Add non-ix alternative solution to Puzzle 8 Added an alternative solution, since ix is being deprecated - pandas-dev/pandas#14218 * Fix ix change formatting issues * Remove chained index solution for Puzzle 8
1 parent 37dbf21 commit 194ae56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

100-pandas-puzzles-with-solutions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
},
209209
"outputs": [],
210210
"source": [
211-
"df.ix[[3, 4, 8], ['animal', 'age']]"
211+
"df.loc[df.index[[3, 4, 8]], ['animal', 'age']]"
212212
]
213213
},
214214
{

0 commit comments

Comments
 (0)