數據分析基礎

一、Jupyter基礎

參考文檔

  1. 具體教程見官方文檔https://jupyter-notebook.readthedocs.io/en/stable/notebook.html
  2. 推薦看這個作者的詳細中文教程https://www.jianshu.com/p/91365f343585

安裝及啓動

  1. 安裝前提 安裝Jupyter Notebook的前提是需要安裝了Python(3.3版本及以上,或2.7版本)。

  2. 開發環境準備 用進入到準備開發的開發環境(參考虛擬環境搭建,使用workon進入虛擬環境)

  3. 安裝 pip install jupyter

  4. 啓動

    ① 默認端口啓動 Jupyter Notebook
    啓動過程中終端顯示內容如下:

    $ jupyter notebook
    [I 08:58:24.417 NotebookApp] Serving notebooks from local directory: /Users/catherine
    [I 08:58:24.417 NotebookApp] 0 active kernels
    [I 08:58:24.417 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
    [I 08:58:24.417 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    

    注意:之後在Jupyter Notebook的所有操作,都請保持終端不要關閉,因爲一旦關閉終端,就會斷開與本地服務器的鏈接,你將無法在Jupyter Notebook中進行其他操作

    瀏覽器地址欄中默認地將會顯示:http://localhost:8888。其中,“localhost”指的是本機,“8888”則是端口號。
    ② 指定端口啓動 jupyter notebook --port <port_number>
    其中,“<port_number>”是自定義端口號,直接以數字的形式寫在命令當中,數字兩邊不加尖括號“<>”。如:jupyter notebook --port 9999,即在端口號爲“9999”的服務器啓動Jupyter Notebook。

二、Numpy基礎

參考文檔

中文官方文檔:https://www.numpy.org.cn/user/setting-up.html
菜鳥教程:https://www.runoob.com/numpy/numpy-tutorial.html

三、Pandas基礎

中文官方文檔:https://www.pypandas.cn/docs/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章