[ https://issues.apache.org/jira/browse/SPARK-44033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743470#comment-17743470 ]
Gurpreet Singh commented on SPARK-44033: ---------------------------------------- [~itholic] I am interested in working on this. If I understand this issue correctly, we are essentially trying to add support for [binary ops|[spark/python/pyspark/pandas/data_type_ops/complex_ops.py at master · apache/spark (github.com)|https://github.com/apache/spark/blob/master/python/pyspark/pandas/data_type_ops/complex_ops.py]] for lists / arrays . Would you be provide more context on this? I am new to this codebase. Thanks > Support list-like for binary ops > -------------------------------- > > Key: SPARK-44033 > URL: https://issues.apache.org/jira/browse/SPARK-44033 > Project: Spark > Issue Type: Bug > Components: Pandas API on Spark > Affects Versions: 3.5.0 > Reporter: Haejoon Lee > Priority: Major > > We should fix the error below: > {code:java} > >>> pser = pd.Series([1, 2, 3, 4, 5, 6], name="x") > >>> psser = ps.from_pandas(pser) > >>> other = [np.nan, 1, 3, 4, np.nan, 6] > >>> psser <= other > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/Users/haejoon.lee/Desktop/git_store/spark/python/pyspark/pandas/base.py", > line 412, in __le__ > return self._dtype_op.le(self, other) > File > "/Users/haejoon.lee/Desktop/git_store/spark/python/pyspark/pandas/data_type_ops/num_ops.py", > line 242, in le > _sanitize_list_like(right) > File > "/Users/haejoon.lee/Desktop/git_store/spark/python/pyspark/pandas/data_type_ops/base.py", > line 199, in _sanitize_list_like > raise TypeError("The operation can not be applied to %s." % > type(operand).__name__) > TypeError: The operation can not be applied to list.{code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org