BUG: The Series .map()
function frequently fails when using dictionaries with tuple keys in various cases.
#60988
Labels
.map()
function frequently fails when using dictionaries with tuple keys in various cases.
#60988
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Issue Description
The Series
.map()
function frequently fails when using dictionaries with tuple keys which is given as parameter to the map function. See the below examples:Ex 1:
Ex 2:
EX 3:
EX 4:
EX 5:
Expected Behavior
Gave the actual outputs and expected outputs.
Installed Versions
INSTALLED VERSIONS
commit : 6bcd303
python : 3.10.14
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.26120
machine : AMD64
processor : AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 3.0.0.dev0+1944.g6bcd30397d.dirty
numpy : 1.26.4
dateutil : 2.9.0.post0
pip : 24.0
Cython : 3.0.10
sphinx : 7.3.7
IPython : 8.18.1
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.12.3
blosc : None
bottleneck : None
fastparquet : None
fsspec : 2024.6.1
html5lib : 1.1
hypothesis : 6.105.0
gcsfs : 2024.6.1
jinja2 : 3.1.4
lxml.etree : None
matplotlib : None
numba : 0.61.0
numexpr : None
odfpy : None
openpyxl : 3.1.5
psycopg2 : None
pymysql : 1.4.6
pyarrow : 19.0.0
pyreadstat : None
pytest : 8.3.4
python-calamine : None
pytz : 2025.1
pyxlsb : 1.0.10
s3fs : 2024.6.1
scipy : 1.15.2
sqlalchemy : 2.0.31
tables : None
tabulate : 0.9.0
xarray : 2024.6.0
xlrd : 2.0.1
xlsxwriter : 3.2.0
zstandard : None
tzdata : 2025.1
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: