{"metadata": {"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}, "language_info": {"codemirror_mode": {"version": 3, "name": "ipython"}, "version": "3.6.1", "mimetype": "text/x-python", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython3", "nbconvert_exporter": "python"}}, "nbformat": 4, "nbformat_minor": 1, "cells": [{"metadata": {}, "source": ["```\u6807\u51c6\u5b89\u88c5\u7684Python\u4e2d\u7528\u5217\u8868(list)\u4fdd\u5b58\u4e00\u7ec4\u503c\uff0c\u53ef\u4ee5\u7528\u6765\u5f53\u4f5c\u6570\u7ec4\u4f7f\u7528\uff0c\u4e0d\u8fc7\u7531\u4e8e\u5217\u8868\u7684\u5143\u7d20\u53ef\u4ee5\u662f\u4efb\u4f55\u5bf9\u8c61\uff0c\u56e0\u6b64\u5217\u8868\u4e2d\u6240\u4fdd\u5b58\u7684\u662f\u5bf9\u8c61\u7684\u6307\u9488\u3002\u8fd9\u6837\u4e3a\u4e86\u4fdd\u5b58\u4e00\u4e2a\u7b80\u5355\u7684[1,2,3]\uff0c\u9700\u8981\u67093\u4e2a\u6307\u9488\u548c\u4e09\u4e2a\u6574\u6570\u5bf9\u8c61\u3002\u5bf9\u4e8e\u6570\u503c\u8fd0\u7b97\u6765\u8bf4\u8fd9\u79cd\u7ed3\u6784\u663e\u7136\u6bd4\u8f83\u6d6a\u8d39\u5185\u5b58\u548cCPU\u8ba1\u7b97\u65f6\u95f4\u3002```\n", "\n", "http://old.sebug.net/paper/books/scipydoc/numpy_intro.html\n", "\u8fd9\u91cc\u9762\u7684\u56fe\u5f88\u597d\n", "\n", "\n", "\u5341\u5206\u949f\u5165\u95e8 numpy \n", "https://docs.scipy.org/doc/numpy-dev/user/quickstart.html\n", "\n"], "cell_type": "markdown"}, {"metadata": {}, "source": ["\u8bb2\u89e3  pandas \u8bfb\u51fa\u6570\u636e\u540e\u7684\u683c\u5f0f\u662f\u4ec0\u4e48\n", "    "], "cell_type": "markdown"}, {"metadata": {}, "execution_count": null, "outputs": [], "source": ["import numpy as np\n", "a=[[1,2,3],[4,5,6],[7,8,9]]\n", "print (a)\n", "print (type(a))\n", "\n", "# \"\"\"List to array conversion\"\"\"\n", "b=np.array(a)\n", "print (b)\n", "print (type(b))\n", "b.shape\n"], "cell_type": "code"}, {"metadata": {}, "execution_count": null, "outputs": [], "source": ["print (a[1][1])\n", "print (a[1])\n", "print (a[1][:])\n"], "cell_type": "code"}, {"metadata": {}, "execution_count": null, "outputs": [], "source": ["print (b[1][1])\n", "print (b[1])\n", "print (b[1][:])"], "cell_type": "code"}, {"metadata": {}, "execution_count": null, "outputs": [], "source": ["print (b[0:3,1:])"], "cell_type": "code"}, {"metadata": {"collapsed": true}, "source": ["Shape \u600e\u4e48\u7528"], "cell_type": "markdown"}, {"metadata": {"collapsed": true}, "execution_count": null, "outputs": [], "source": ["\n"], "cell_type": "code"}, {"metadata": {}, "source": ["train_test_split"], "cell_type": "markdown"}]}