Skip to content

Commit

Permalink
Update notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jun 22, 2018
1 parent ac924f2 commit f6c8660
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion notebooks/xframe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"#include \"xtensor/xio.hpp\"\n",
"\n",
"#include \"xframe/xvariable.hpp\"\n",
"#include \"xframe/xvariable_view.hpp\""
"#include \"xframe/xvariable_view.hpp\"\n",
"#include \"xframe/xvariable_masked_view.hpp\""
]
},
{
Expand Down Expand Up @@ -255,6 +256,27 @@
"source": [
"std::cout << res2;"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"auto masked_view = xf::where(\n",
" var3, \n",
" not_equal(var3.axis<char>(\"abscissa\"), 'd') && not_equal(var3.axis<int>(\"ordinate\"), 2)\n",
");"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"std::cout << masked_view;"
]
}
],
"metadata": {
Expand Down

0 comments on commit f6c8660

Please sign in to comment.