Last active
April 29, 2018 02:48
-
-
Save cab938/68f8afafa7eb1af7f19467e2b7255287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip install html5lib #install html5lib, only needs to be run once | |
#You might need to restart kernel after running with the menu Kernel>Restart | |
import pandas as pd | |
import numpy as np | |
from scipy import stats | |
df=pd.read_html('https://proxy.mentoracademy.org/getContentFromUrl/?userid=user&url=https://www.ncdc.noaa.gov/cag/global/time-series/asia/land/ytd/12/1910-2016', header=0)[0] | |
pop1 = #put the cleaned list of all temperature anomalies for pre 1950 | |
pop2 = #put the cleaned list of all temperature anomalies for 1950 and above | |
print("Mean anomaly values before 1950 {}, and mean after 1950 {}".format(np.mean(pop1),np.mean(pop2))) | |
if #put test of statistics with alpha <=0.01 | |
print("Test was statistically significant at p<0.01 value.") | |
else: | |
print("Test was not statistically significant at p<0.01 value.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment