A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9016 below:

Bitwise operation weirdness · Issue #9016 · pandas-dev/pandas · GitHub

It seems like pd.Series([x]) | pd.Series([y]) with x, y integers returns pd.Series([x | y]).astype(bool). This is a reasonable semantic, but pd.Series([x]) & pd.Series([y]) seems to return pd.Series([x & y % 2]) == 1, which is a lot weirder. Is there a justification for this? I couldn't find one in the documentation (& is hard to search!), so it may be a bug.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4