Last active
December 21, 2019 23:04
-
-
Save ssrosa/8c5a68a1bb9b56c0d448e2065fe341e1 to your computer and use it in GitHub Desktop.
Revisions
-
ssrosa revised this gist
Dec 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ #Divide each column by its number of stories to get the mean hourly_means = pd.DataFrame({col: hourly_mi[col] / hourly_mi['count'] for col in hourly_mi.columns}).fillna(0) -
ssrosa created this gist
Dec 21, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #Divide each column by its number of stories to get the mean hourly_means = pd.DataFrame({col: hourly_mi[col] / hourly_mi['count'] for col in cols}).fillna(0)