honno commented on issue #22446: URL: https://github.com/apache/arrow/issues/22446#issuecomment-1543842308
Worth noting `Table.equals()` treats NaNs as equal on the contrary ```python >>> table = pa.Table.from_pydict({"foo": [float("nan")]}) >>> table.equals(table) True ``` and `RecordBatch.equals()` does not ```python >>> record_batch = pa.RecordBatch.from_pydict({"a": [float("nan")]}) >>> record_batch.equals(record_batch) False ``` (+1 for an equals option, but also just to say it'd be nice if there was consistency amongst the default calls of `equals()` too). -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org