petern48 commented on code in PR #2150:
URL: https://github.com/apache/sedona/pull/2150#discussion_r2227546765
##########
python/sedona/geopandas/geodataframe.py:
##########
@@ -512,6 +508,9 @@ def __init__(
#
============================================================================
# GEOMETRY COLUMN MANAGEMENT
#
============================================================================
+ def __repr__(self):
+ geoseries = self.to_geopandas()
+ return geoseries.__repr__()
Review Comment:
I'd rather print the actual dataframe.
EDIT: Actually this brought up a good point. We should be able to print the
representation without calling `to_geopandas()`. Now that we've moved towards
storing everything as geometries and not WKB, the natural spark output displays
correctly (instead of byte arrays like how we started). I've removed the
`__repr__()`s, so we simply use pyspark pandas implementation, which now
displays nicely.
--
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]