Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Series + DataFrame result is different object type depending on order of operands #7236

Open
3 tasks done
sfc-gh-rdurrani opened this issue May 2, 2024 · 0 comments
Open
3 tasks done
Labels
bug 🦗 Something isn't working Enable plugin Fixes needed to enable external plugins P1 Important tasks that we should complete soon

Comments

@sfc-gh-rdurrani
Copy link

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

import modin.pandas as pd

df = pd.DataFrame([1])
print(df[0] + df)

Issue Description

The above should result in a 1x1 DataFrame, as print(df + df[0]) would, but instead results in a Series.

Expected Behavior

Should result in a 1x1 DataFrame.

Error Logs

Replace this line with the error backtrace (if applicable).

Installed Versions

INSTALLED VERSIONS

commit : 6d64e08
python : 3.9.19.final.0
python-bits : 64
OS : Darwin
OS-release : 23.4.0
Version : Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8

Modin dependencies

modin : 0.29.0
ray : 2.20.0
dask : None
distributed : None
hdk : None

pandas dependencies

pandas : 2.2.2
numpy : 1.26.4
pytz : 2024.1
dateutil : 2.9.0.post0
setuptools : 68.2.2
pip : 23.3.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.3
IPython : 8.18.1
pandas_datareader : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
bottleneck : None
dataframe-api-compat : None
fastparquet : None
fsspec : 2024.3.1
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 16.0.0
pyreadstat : None
python-calamine : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2024.1
qtpy : None
pyqt5 : None

@sfc-gh-rdurrani sfc-gh-rdurrani added bug 🦗 Something isn't working Triage 🩹 Issues that need triage labels May 2, 2024
@sfc-gh-mvashishtha sfc-gh-mvashishtha added P1 Important tasks that we should complete soon Enable plugin Fixes needed to enable external plugins and removed Triage 🩹 Issues that need triage labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working Enable plugin Fixes needed to enable external plugins P1 Important tasks that we should complete soon
Projects
None yet
Development

No branches or pull requests

2 participants