You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works because np.array(True) + np.array(True) = np.array(True), but outside of numpy, True + True = 2. pd.Series(True) + pd.Series(True) = pd.Series(True), but this throws a warning and asks to use | instead.
Replacing bool + bool with bool | bool and bool * bool with bool & bool throughout will clarify the code.
The text was updated successfully, but these errors were encountered:
e.g.:
https://github.com/PSLmodels/openfisca-uk/blob/a22170e16bd85a7cfedc1bc1f50144b6a0138ea3/openfisca_uk/variables/finance/benefit/benefit.py#L133
This works because
np.array(True) + np.array(True) = np.array(True)
, but outside of numpy,True + True = 2
.pd.Series(True) + pd.Series(True) = pd.Series(True)
, but this throws a warning and asks to use|
instead.Replacing
bool + bool
withbool | bool
andbool * bool
withbool & bool
throughout will clarify the code.The text was updated successfully, but these errors were encountered: