courses icon indicating copy to clipboard operation
courses copied to clipboard

[IntroRemoteDS-pre] Fix and improvements to L3_DataPreparation notebook

Open leriomaggio opened this issue 2 years ago • 1 comments

Description

This PR fixes a few minors in the L3_DataPreparation.ipynb notebook after coding through the first block of Lecture 3 in Introduction to Remote Data Science pre-release.

This commit addresses Issue OpenMined#380 OpenMined#381 OpenMined#382 Moreover:

  • duplicates in raw_data should be applied inplace
  • plt.show() has been added whenever a plot is generated to avoid the repr of the Axis object
  • the plot_extrapolated_country function had a missing an import numpy as np
  • x = list(range(53)) has been updated as per drop in-place
  • .iloc is always used whenever accessing an entry in the transposed DataFrame. (Without iloc, the code doesn't work - pandas 1.3.3)

Checklist

leriomaggio avatar Nov 17 '21 14:11 leriomaggio

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB