PERF: Series.apply is slower on single element dict compared with multi elements dict #56942
Closed
2 of 3 tasks
Labels
Apply
Apply, Aggregate, Transform, Map
Needs Info
Clarification about behavior needed to assess issue
Performance
Memory or execution speed performance
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this issue exists on the latest version of pandas.
I have confirmed this issue exists on the main branch of pandas.
Reproducible Example
Hello, I noticed that applying the apply function to a Series with a single element dictionary takes more time than its counterpart with a multi-element dictionary. I'm curious if this is due to something I did wrong.
Installed Versions
INSTALLED VERSIONS
commit : d4c8d82
python : 3.9.18.final.0
python-bits : 64
OS : Linux
OS-release : 5.15.0-88-generic
Version : #98~20.04.1-Ubuntu SMP Mon Oct 9 16:43:45 UTC 2023
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 2.2.0rc0
numpy : 1.26.3
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 68.2.2
pip : 23.3.1
Cython : 3.0.8
pytest : None
hypothesis : None
...
zstandard : None
tzdata : 2023.4
qtpy : None
pyqt5 : None
Prior Performance
No response
The text was updated successfully, but these errors were encountered: