Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
  • Loading branch information
nitbharambe committed Oct 24, 2024
1 parent aa7cabe commit 5b5aff5
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions docs/examples/arrow_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
" if attributes is not None and meta_attribute not in attributes:\n",
" continue\n",
" if dtype.shape == (3,):\n",
" # The asymmetric attributes are stored as a fixed list array of 3 elements\n",
" pa_dtype = pa.list_(pa.from_numpy_dtype(dtype.base), 3)\n",
" else:\n",
" pa_dtype = pa.from_numpy_dtype(dtype)\n",
Expand Down Expand Up @@ -802,34 +803,6 @@
"pa_asym_node_result"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<pyarrow.lib.DoubleArray object at 0x000001C0F99C7AC0>\n",
"[\n",
" 1,\n",
" 0.01,\n",
" 0.011,\n",
" 2,\n",
" 2.5,\n",
" 450\n",
"]"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pa.array(asym_load_input[\"p_specified\"].flatten(), type=pa.float64())"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 5b5aff5

Please sign in to comment.