Advanced Python

davidbpython.com




Projects, Session 8



NOTE: WHEN COMPLETE, PLEASE FOLLOW THESE INSTRUCTIONS TO SUMIT. When finished with the notebook:

  1. select File > Save and Export Notebook As... and then choose Executable Script
  2. Jupyter will download a .py file (usually to your Downloads directory).
  3. Open the .py file in a text editor (you can also use PyCharm).  
  4. Copy and then paste the text of the .py file into the homework submission blank.

Let me know if you have any issues!

 
8.1 Download session_8_homework.ipynb from the session_8_working_files folder (also linked from the course materials page). To do this, right click the link and select "Save Link As" (or similar) and save to a local folder. Also download bond_feed_tiny.xls to the same directory.

The questions are written as comments in each cell, and the expected output is written as a comment beneath each cell. Enter the pandas / Python code needed to answer each question and print the resulting object -- you should hopefully see your output match the expected output. Remember that changes to a cell will not affect another cell until you run each cell. You can run all cells if you wish -- see the manu. (Use Shift - [Enter] to run the current cell and drop down.) See above for instructions on how to submit your completed notebook. Let me know your questions!

 

[pr]