diff --git a/docs/tutorials/data_manipulation.ipynb b/docs/tutorials/data_manipulation.ipynb index 844627cb..f0383532 100644 --- a/docs/tutorials/data_manipulation.ipynb +++ b/docs/tutorials/data_manipulation.ipynb @@ -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": {}, @@ -370,7 +394,7 @@ ], "metadata": { "kernelspec": { - "display_name": "lsdb", + "display_name": "nested", "language": "python", "name": "python3" }, @@ -384,7 +408,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.8" + "version": "3.10.4" } }, "nbformat": 4,