python实战计划的第八个项目:jupyter做简单的数据图表。
任务分析
在jupyter里面绘制数据图表。
a.先在终端输入jupyter notebook,启动jupyter跳到一个Home页面
PS C:\Users\daile> jupyter notebook
[W 11:23:44.659 NotebookApp] Unrecognized JSON config file version, assuming version 1
[I 11:23:49.263 NotebookApp] [nb_conda_kernels] enabled, 1 kernels found
[I 11:23:52.642 NotebookApp] [nb_conda] enabled
[I 11:23:53.494 NotebookApp] \u2713 nbpresent HTML export ENABLED
[W 11:23:53.495 NotebookApp] \u2717 nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'
[I 11:23:54.444 NotebookApp] [nb_anacondacloud] enabled
[I 11:23:54.791 NotebookApp] Serving notebooks from local directory: C:\Users\daile
[I 11:23:54.791 NotebookApp] 0 active kernels
[I 11:23:54.791 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 11:23:54.791 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
b.点击pythoy创建新页面
c.导入charts模块,按照格式创建series对象,用charts.plot()方法展示,其中传入的三个参数分别是:目标对象,显示方式以及标题。(按shift+enter运行)
显示如下: