{"task": {"agent_timeout": 3000, "task": "pandas-dev__pandas-53681", "verifier_timeout": 6000, "instruction": "BUG: inconsistent behavior of DateOffset\n### Pandas version checks\n\n- [X] I have checked that this issue has not already been reported.\n\n- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.\n\n- [X] I have confirmed this bug exists on the main branch of pandas.\n\n\n### Reproducible Example\n\n```python\nimport pandas as pd\n\ndf = pd.DataFrame({\n   'S':[pd.Timestamp('2019-04-30')],\n   'A':[pd.DateOffset(months=1)]\n   })\n\n# FIRST TEST\n>>> df['S'] + 26 * df['A']\n0   2021-06-30\ndtype: datetime64[ns]\n\n# SECOND TEST\n>>> df['S'].iloc[0] + 26 * df['A'].iloc[0]\nTimestamp('2021-06-28 00:00:00')\n```\n\n\n### Issue Description\n\nIt seems like multiplying a DateOffset by constant leads to an inconsistent behavior: the first test gives 30/6 while the second 28/6 \n\n### Expected Behavior\n\nIn any case it should be 2021-06-30\n\n### Installed Versions\n\n<details>\n\nINSTALLED VERSIONS\n------------------\ncommit           : 66e3805b8cabe977f40c05259cc3fcf7ead5687d\npython           : 3.10.1.final.0\npython-bits      : 64\nOS               : Windows\nOS-release       : 10\nVersion          : 10.0.19042\nmachine          : AMD64\nprocessor        : Intel64 Family 6 Model 126 Stepping 5, GenuineIntel\nbyteorder        : little\nLC_ALL           : None\nLANG             : None\nLOCALE           : Italian_Italy.1252\n\npandas           : 1.3.5\nnumpy            : 1.21.5\npytz             : 2021.3\ndateutil         : 2.8.2\npip              : 21.3.1\nsetuptools       : 58.1.0\nCython           : None\npytest           : None\nhypothesis       : None\nsphinx           : None\nblosc            : None\nfeather          : None\nxlsxwriter       : None\nlxml.etree       : 4.8.0\nhtml5lib         : None\npymysql          : None\npsycopg2         : None\njinja2           : None\nIPython          : 8.1.1\npandas_datareader: None\nbs4              : None\nbottleneck       : None\nfsspec           : None\nfastparquet      : None\ngcsfs            : None\nmatplotlib       : 3.5.1\nnumexpr          : None\nodfpy            : None\nopenpyxl         : 3.0.9\npandas_gbq       : None\npyarrow          : None\npyxlsb           : None\ns3fs             : None\nscipy            : 1.7.3\nsqlalchemy       : None\ntables           : None\ntabulate         : None\nxarray           : None\nxlrd             : None\nxlwt             : None\nnumba            : None\n\n</details>\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": 1, "instruction_truncated": false, "category": "debugging", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "swegym", "tags": ["debugging", "swe-bench"]}, "runs": []}