Helper function used to implement the `` add`` functions.
(c1, c2)
| 570 | |
| 571 | |
| 572 | def _add(c1, c2): |
| 573 | """ Helper function used to implement the ``<type>add`` functions. """ |
| 574 | # c1, c2 are trimmed copies |
| 575 | [c1, c2] = as_series([c1, c2]) |
| 576 | if len(c1) > len(c2): |
| 577 | c1[:c2.size] += c2 |
| 578 | ret = c1 |
| 579 | else: |
| 580 | c2[:c1.size] += c1 |
| 581 | ret = c2 |
| 582 | return trimseq(ret) |
| 583 | |
| 584 | |
| 585 | def _sub(c1, c2): |