-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use geo accessor for GeoSeries methods? #166
Comments
Not sure if that's the intended direction of this discussion, but |
This is something I'm really starting to support... especially after dealing with all the typing issues that seem to keep popping up and feel unavoidable. We actually discussed and made a basic implementation of this back in #69, but ultimately decided against it. I think now that The only immediate questions that come to mind are how to store the extra information that needs to travel along with Hoping to hear from the other GeoPandans about this too. |
Look at |
|
@JanSchulz This was indeed my intended direction for this discussion. |
@jwass Yes, I think the right approach would be to store the crs and rtree as One other thing -- when/if this does happen, it would be great if it can work for ndarrays, not just 1d arrays (like categorical currently). I can imagine multi-dimensional geoarrays working great for raster data... perhaps even some sort of mash up with xray (my project for multi-dimensional pandas-like data structures). |
@shoyer In Categorical, the public API is contained to the accessor (any |
I'm coming around on the What I'd like to do as a next step is get a stable 0.2 release with spatial indexing and spatial joins, then we can look at doing some design for the next version. |
@JanSchulz The real problem, of course, is that there is no standard way to write numpy ndarray-like objects that cannot or should not be actual ndarrays (e.g., because it's overkill to write C). Something like an abstract base class for ndarray like objects. I feel that this something more fundamental than pandas, but I don't even know where it belongs (numpy? blaze?). |
|
@JanSchulz Yep. I guess what I'm saying is, I wish it was easier to write custom dtypes, such as |
The discussion about dtypes seems to be getting a little off-topic here, so I posted to the numpy mailing list: http://mail.scipy.org/pipermail/numpy-discussion/2014-September/071231.html |
Looks like a duplicate of #680 (comment) (which has a more in-depth discussion) |
The next version of pandas will introduce a
.dt
series accessor for datetime methods, along.cat
for categoricals and the existing.str
for string methods.From this perspective, would it make sense to have geo-specific methods use a
.geo
attribute? e.g.,s.geo.convex_hull
instead of the currents.convex_hull
.Just thought I'd throw that out there for consideration, especially if tighter integration with pandas itself is desired at some point (e.g., to plug into the pandas internals at a lower level such that
GeoSeries
andGeoDataFrame
are not necessary).The text was updated successfully, but these errors were encountered: