Skip to content

Instantly share code, notes, and snippets.

@flyfir248
Created July 19, 2022 13:40
Show Gist options
  • Save flyfir248/e6d5df743790ea53e09a253b1e9cc8c6 to your computer and use it in GitHub Desktop.
Save flyfir248/e6d5df743790ea53e09a253b1e9cc8c6 to your computer and use it in GitHub Desktop.
Website Notebook Classwork 6.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Website Notebook Classwork 6.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyP7D2ddiyKwGbY85y94Nio/",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/flyfir248/e6d5df743790ea53e09a253b1e9cc8c6/website-notebook-classwork-6.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"id": "ptjUy7ICqNk7"
},
"outputs": [],
"source": [
"import numpy as np\n",
"\n",
"Array1 = np.array([[1,2,3],[4,5,6]])\n",
"Array2 = np.array([[7,8,9],[10,11,12]])"
]
},
{
"cell_type": "code",
"source": [
"np.concatenate([Array1, Array2], axis = 1)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "pfWwEknYr8f8",
"outputId": "0177dee7-6e2c-4d8d-fc27-7dd4874573ce"
},
"execution_count": 3,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"array([[ 1, 2, 3, 7, 8, 9],\n",
" [ 4, 5, 6, 10, 11, 12]])"
]
},
"metadata": {},
"execution_count": 3
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment