For several APIs, the errors argument can be used to control what happens when an operation is not successful. For example,pandas.to_datetime allows errors for handling a failed conversion: pandas.to_datetime — pandas 1.4.2 documentation . While both raise and coerce are JIT compatible, the ignore option is not because it can lead to inconsistent types.
Here as you can see, the output dtype is dependent entirely the runtime values of arr, meaning for arguments with particular input types you cannot predict the output type. We would like to see this option removed from all Pandas APIs because it fundamentally makes it impossible to JIT compile this code.
For several APIs, the errors argument can be used to control what happens when an operation is not successful. For example,
pandas.to_datetime
allows errors for handling a failed conversion: pandas.to_datetime — pandas 1.4.2 documentation . While both raise and coerce are JIT compatible, the ignore option is not because it can lead to inconsistent types.Here as you can see, the output dtype is dependent entirely the runtime values of
arr
, meaning for arguments with particular input types you cannot predict the output type. We would like to see this option removed from all Pandas APIs because it fundamentally makes it impossible to JIT compile this code.