Skip to content

Commit

Permalink
Merge pull request fastai#176 from imbolc/master
Browse files Browse the repository at this point in the history
A bit shorter `pd.option_context`
  • Loading branch information
jph00 authored Feb 27, 2018
2 parents 7291ce1 + e02b8d6 commit 156da35
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions courses/ml1/lesson1-rf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,8 @@
"outputs": [],
"source": [
"def display_all(df):\n",
" with pd.option_context(\"display.max_rows\", 1000): \n",
" with pd.option_context(\"display.max_columns\", 1000): \n",
" display(df)"
" with pd.option_context(\"display.max_rows\", 1000, \"display.max_columns\", 1000): \n",
" display(df)"
]
},
{
Expand Down Expand Up @@ -1189,7 +1188,7 @@
}
],
"source": [
"display_all(df_raw.tail().transpose())"
"display_all(df_raw.tail().T)"
]
},
{
Expand Down Expand Up @@ -2371,7 +2370,7 @@
}
],
"source": [
"display_all(df_raw.describe(include='all').transpose())"
"display_all(df_raw.describe(include='all').T)"
]
},
{
Expand Down

0 comments on commit 156da35

Please sign in to comment.