Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions docs/tutorials/data_manipulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,30 @@
"ndf[\"nested.ab\"]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Concatenating Nested Frames\n",
"\n",
"Users can concatenate two nested data frames using panda's `concat` function. Each row from each individual frame becomes a single row in the combined frame with the nested data correctly propagated."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from pandas import concat\n",
"\n",
"ndf_part1 = generate_data(5, 20, seed=1)\n",
"ndf_part2 = generate_data(5, 20, seed=2)\n",
"ndf_joined = concat([ndf_part1, ndf_part2], ignore_index=True)\n",
"\n",
"ndf_joined"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -370,7 +394,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "lsdb",
"display_name": "nested",
"language": "python",
"name": "python3"
},
Expand All @@ -384,7 +408,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.8"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
Loading