Created
February 13, 2019 07:38
-
-
Save tanveer-sayyed/b7e6b37239df90d1f3847d6dc8538d44 to your computer and use it in GitHub Desktop.
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 characters
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