Description
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
In [1]: import modin.pandas as mpd
In [2]: s = mpd.Series([1,2,3], index=[1,0,2])
In [3]: s.argmin()
Out[3]: np.int64(1)
In [4]: import pandas as pd
In [5]: s = pd.Series([1,2,3], index=[1,0,2])
In [6]: s.argmin()
Out[6]: np.int64(0)
Issue Description
incorrect results
Spotted in Narwhals
Expected Behavior
same as pandas
Error Logs
Replace this line with the error backtrace (if applicable).
Installed Versions
INSTALLED VERSIONS
commit : 3e951a6
python : 3.12.5
python-bits : 64
OS : Linux
OS-release : 5.15.167.4-microsoft-standard-WSL2
Version : #1 SMP Tue Nov 5 00:21:55 UTC 2024
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : C.UTF-8
Modin dependencies
modin : 0.32.0
ray : None
dask : 2024.9.0
distributed : 2024.9.0
pandas dependencies
pandas : 2.2.3
numpy : 2.2.0
pytz : 2024.2
dateutil : 2.9.0.post0
pip : 24.3.1
Cython : None
sphinx : None
IPython : 8.30.0
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.12.3
blosc : None
bottleneck : None
dataframe-api-compat : None
fastparquet : None
fsspec : 2024.10.0
html5lib : None
hypothesis : None
gcsfs : None
jinja2 : 3.1.4
lxml.etree : None
matplotlib : 3.9.2
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
psycopg2 : None
pymysql : None
pyarrow : 18.1.0
pyreadstat : None
pytest : 8.3.3
python-calamine : None
pyxlsb : None
s3fs : None
scipy : 1.14.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlsxwriter : None
zstandard : None
tzdata : 2024.2
qtpy : None
pyqt5 : None