40923248 cp2020

  • Home
    • Site Map
    • reveal
    • blog
  • 首YA
  • HW1
    • PCH 15 Introduction to Wireless Networking 無線網絡簡介
      • Wireless LANs 無線局域網
      • Wireless Devices 無線設備
      • Wireless Standards 無線標準
      • Privacy and Security 隱私和安全
      • Wireless Networking Types 無線網絡類型
    • PCH 16  Internet Connectivity 互聯網連接
      • Internet Connectivity 互聯網連接
      • Networking  Internet Connectivity  聯網 Internet連接
      • Setting up a Network 建立網絡
  • HW2
  • HW3
    • Birthday Dictionaries 生日字典
      • Exercise 33  and Solution   練習33 和解決方案
      • Discussion topics 討論主題
      • Dictionaries 辭典
      • QUICK REVIEW 快速復審
      • MORE ON DICTIONARY KEYS 有關字典鍵的更多信息
      • String formatting 字符串格式
      • Solutions 解決方案
    • Tic Tac Toe Draw 井字遊戲抽獎
      • Exercise 27 and Solution 練習27 和解決方案
      • Concepts 概念
      • Solutions解決方案
    • Birthday Plots 生日情節
      • Exercise 36 and Solution 練習36和解決方案
      • Discussion 討論區
      • When to make plots 什麼時候作圖
      • Plotting libraries in Python 用Python繪製庫
      • Installing bokeh 安裝背景虛化
      • Using bokeh 使用散景
  • 心得
  • 自評 65 分
Birthday Plots 生日情節 << Previous Next >> Discussion 討論區

Exercise 36 and Solution 練習36和解決方案

This exercise is Part 4 of 4 of the birthday data exercise series. The other exercises are: Part 1, Part 2, and Part 3.

In the previous exercise we counted how many birthdays there are in each month in our dictionary of birthdays.

In this exercise, use the bokeh Python library to plot a histogram of which months the scientists have birthdays in! Because it would take a long time for you to input the months of various scientists, you can use my scientist birthday JSON file. Just parse out the months (if you don’t know how, I suggest looking at the previous exercise or its solution) and draw your histogram.

If you are using a purely web-based interface for coding, this exercise won’t work for you, since it requires installing the bokeh Python package. Now might be a good time to install Python on your own computer.

此練習是生日數據練習系列4的第4部分。其他練習是:第1部分,第2部分和第3部分。

在上一個練習中,我們在生日詞典中計算了每個月有多少個生日。

在本練習中,使用bokeh Python庫繪製科學家在哪幾個月生日的直方圖!由於輸入多個科學家的時間會花費很長時間,因此可以使用我的科學家生日JSON文件。只需解析幾個月(如果您不知道如何做,我建議您查看上一個練習或其解決方案)並繪製直方圖。

如果您使用的是純粹基於網絡的界面進行編碼,則此練習對您不起作用,因為它需要安裝bokeh Python軟件包。現在可能是在自己的計算機上安裝Python的好時機。


Birthday Plots 生日情節 << Previous Next >> Discussion 討論區

Copyright © All rights reserved | This template is made with by Colorlib