jorisvandenbossche commented on pull request #11023: URL: https://github.com/apache/arrow/pull/11023#issuecomment-947510017
BTW also in Python the "repeat" of strings errors for a float: ``` In [14]: "a" * 2.5 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-14-0a372606199b> in <module> ----> 1 "a" * 2.5 ``` (for negative integer it indeed returns an empty string, but I agree we should not necessarily follow that and I would also expect an error). In pandas' `Series.str.repeat`, if you use a float it actually results in missing values. But I would say that's a bug in pandas and that it should rather raise an error instead (it's because in the default implementation of applying a function on each string, we catch errors and in that case return a missing value instead for that string). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
