Skip to content

Instantly share code, notes, and snippets.

@tanveer-sayyed
Created February 13, 2019 07:38
Show Gist options
  • Save tanveer-sayyed/b7e6b37239df90d1f3847d6dc8538d44 to your computer and use it in GitHub Desktop.
Save tanveer-sayyed/b7e6b37239df90d1f3847d6dc8538d44 to your computer and use it in GitHub Desktop.
In [21]:
series_with_all_missing + series_with_2_missing
Out[21]:
0 NaN
1 NaN
2 NaN
3 NaN
dtype: float64
In [22]:
series_with_all_missing / series_with_2_missing
Out[22]:
0 NaN
1 NaN
2 NaN
3 NaN
dtype: float64
In [23]:
# Conflicting outputs
print(sum(series_with_all_missing))
print(series_with_all_missing.sum())
Out[23]:
nan
0.0
In [24]:
# Conflicting outputs
print(sum(series_with_2_missing))
print(series_with_2_missing.sum())
Out[24]:
nan
3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment