idxmax()
fails for string type
#11516
Labels
API Design
Duplicate Report
Duplicate issue or pull request
Strings
String extension data type and string data
While it's possible to find the
max
of a Series containing strings, it's not possible to find theidxmax
:This surprised me because it works without a problem in numpy:
It seems that pandas
idxmax
implementation implicitly assumes numerical types.The text was updated successfully, but these errors were encountered: