You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "prantogg (via GitHub)" <gi...@apache.org> on 2026/01/26 17:05:14 UTC
[I] Implement `__len__` on SedonaDB DataFrame for Pythonic `len(df)` support [sedona-db]
prantogg opened a new issue, #553:
URL: https://github.com/apache/sedona-db/issues/553
It would be great if SedonaDB DataFrames supported Python’s built-in `len()` by implementing `__len__`.
In Python data tooling, it’s common (and expected) that `len(df)` returns the number of rows in a dataframe-like object. For example, DuckDB relations/dataframes support this kind of “Pythonic” ergonomics.
Today, calling `len(df)` on a SedonaDB DataFrame raises a `TypeError` because the DataFrame type doesn’t implement `__len__`.
--
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: issues-unsubscribe@sedona.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Implement `__len__` on SedonaDB DataFrame for Pythonic `len(df)` support [sedona-db]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot closed issue #553: Implement `__len__` on SedonaDB DataFrame for Pythonic `len(df)` support
URL: https://github.com/apache/sedona-db/issues/553
--
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: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Implement `__len__` on SedonaDB DataFrame for Pythonic `len(df)` support [sedona-db]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #553:
URL: https://github.com/apache/sedona-db/issues/553#issuecomment-3801172166
It's a great point and it's come up before. I'm skeptical to add `__len__()` because it is also typically expected that calling `len(obj)` is cheap and in the case of a SedonaDB DataFrame this could be very time consuming. Ibis throws an error here explaining the rationale (`ExpressionError: Use .count() instead`) and maybe we should do the same.
--
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: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Implement `__len__` on SedonaDB DataFrame for Pythonic `len(df)` support [sedona-db]
Posted by "p-vdp (via GitHub)" <gi...@apache.org>.
p-vdp commented on issue #553:
URL: https://github.com/apache/sedona-db/issues/553#issuecomment-3801021715
See [#176 ](https://github.com/apache/sedona-db/pull/176#pullrequestreview-3297020808)
--
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: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org