Use align_method in comp_method_FRAME
State: closed

Redux to #22880 @jorisvandenbossche 

Closes #20090 

Summary:
DataFrame comparison operations broadcasting is inconsistent with arithmetic operations broadcasting.  This PR fixes that.

Labels:
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode
name: Numeric Operations
description: Arithmetic, Comparison, and Logical operations

Comments:
Hello @jbrockmendel! Thanks for submitting the PR.

 - There are no PEP8 issues in the file [`pandas/core/frame.py`](https://github.com/jbrockmendel/pandas/blob/826f2c741d1624f9cdc8d2052c0a9cb681bf374b/pandas/core/frame.py) !

 - There are no PEP8 issues in the file [`pandas/core/internals/blocks.py`](https://github.com/jbrockmendel/pandas/blob/826f2c741d1624f9cdc8d2052c0a9cb681bf374b/pandas/core/internals/blocks.py) !

 - There are no PEP8 issues in the file [`pandas/core/internals/managers.py`](https://github.com/jbrockmendel/pandas/blob/826f2c741d1624f9cdc8d2052c0a9cb681bf374b/pandas/core/internals/managers.py) !

 - There are no PEP8 issues in the file [`pandas/core/ops.py`](https://github.com/jbrockmendel/pandas/blob/826f2c741d1624f9cdc8d2052c0a9cb681bf374b/pandas/core/ops.py) !

 - There are no PEP8 issues in the file [`pandas/tests/frame/test_arithmetic.py`](https://github.com/jbrockmendel/pandas/blob/826f2c741d1624f9cdc8d2052c0a9cb681bf374b/pandas/tests/frame/test_arithmetic.py) !

 - There are no PEP8 issues in the file [`pandas/tests/frame/test_operators.py`](https://github.com/jbrockmendel/pandas/blob/826f2c741d1624f9cdc8d2052c0a9cb681bf374b/pandas/tests/frame/test_operators.py) !


i think was ok with this before, needs a rebase, @jorisvandenbossche 
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=h1) Report
> Merging [#23132](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/5e06c84c8994b625407293ff6c80b8d9ddaaca5d?src=pr&el=desc) will **increase** coverage by `0.03%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/23132/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #23132      +/-   ##
==========================================
+ Coverage   92.19%   92.22%   +0.03%     
==========================================
  Files         169      169              
  Lines       50956    50877      -79     
==========================================
- Hits        46978    46922      -56     
+ Misses       3978     3955      -23
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.64% <100%> (+0.03%)` | :arrow_up: |
| #single | `42.33% <100%> (+0.05%)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/internals/managers.py](https://codecov.io/gh/pandas-dev/pandas/pull/23132/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW50ZXJuYWxzL21hbmFnZXJzLnB5) | `95.75% <ø> (-0.03%)` | :arrow_down: |
| [pandas/core/internals/blocks.py](https://codecov.io/gh/pandas-dev/pandas/pull/23132/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW50ZXJuYWxzL2Jsb2Nrcy5weQ==) | `94.08% <ø> (+1.17%)` | :arrow_up: |
| [pandas/core/ops.py](https://codecov.io/gh/pandas-dev/pandas/pull/23132/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvb3BzLnB5) | `94.64% <100%> (ø)` | :arrow_up: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/23132/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.11% <100%> (-0.01%)` | :arrow_down: |
| [pandas/core/reshape/merge.py](https://codecov.io/gh/pandas-dev/pandas/pull/23132/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzaGFwZS9tZXJnZS5weQ==) | `94.01% <0%> (+0.06%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=footer). Last update [5e06c84...d2c8ca2](https://codecov.io/gh/pandas-dev/pandas/pull/23132?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

@jorisvandenbossche focusing here instead of PeriodArray for a bit.  Can you recap your concerns?
@jorisvandenbossche gentle ping.  You're the gate-keeper for this and #23113.
would also merge master here
lgtm. merging shorty.
thanks!
@jreback I know I have not been responsive here (I have been rather busy with thoroughly looking at all the EA related stuff), but I would appreciate if you didn't merge this without me looking at it (I was the original reason this got reverted). There are other ways to reach out to me.
this was blocking other things; you need to divide your time then
Then at least mention it is blocking other PRs, then I can try to prioritize it
you were pinged multiple times if u really want to block then put a review request