-  
 -   Notifications  
You must be signed in to change notification settings  - Fork 19.2k
 
Labels
Error ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasSeriesSeries data structureSeries data structure
Milestone
Description
Currently,
s = pd.Series(['a', 'b', 'c']) s.str.cat([1, 2, 3]) yields
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Axel Obermeier\eclipse-workspace\pddev\pandas\core\strings.py", line 2222, in cat res = str_cat(data, others=others, sep=sep, na_rep=na_rep) File "C:\Users\Axel Obermeier\eclipse-workspace\pddev\pandas\core\strings.py", line 111, in str_cat cats = [sep.join(tup) for tup in tuples] File "C:\Users\Axel Obermeier\eclipse-workspace\pddev\pandas\core\strings.py", line 111, in <listcomp> cats = [sep.join(tup) for tup in tuples] TypeError: sequence item 1: expected str instance, int found IMO, this should be improved to have a better error message, and shallower stack trace.
Metadata
Metadata
Assignees
Labels
Error ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasSeriesSeries data structureSeries data structure