Skip to content
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

ENH: Add GeometryArray._from_sequence_of_strings #3101

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

bnaul
Copy link
Contributor

@bnaul bnaul commented Dec 4, 2023

Closes #3099.

Like _from_sequence right above, I minimally edited the abstract base function to give the desired behavior.

@martinfleis think this warrants its own test since it's more or less an alias of from_wkt...?

@jorisvandenbossche
Copy link
Member

I think it would be good to add a small test that reading from CSV with specifying the dtype works (essentially what you did in the issue). While we indeed don't need to test the details of what kind of strings work for from_wkt, it's good to have some test to avoid accidentally removing this feature.

@bnaul
Copy link
Contributor Author

bnaul commented Dec 5, 2023

Makes sense, added!

@bnaul
Copy link
Contributor Author

bnaul commented Dec 27, 2023

@jorisvandenbossche believe this is ready, I think the test failure is unrelated

@martinfleis
Copy link
Member

Looks good to me! Can you also add a short line to the changelog?

@martinfleis martinfleis added this to the 1.0 milestone Dec 29, 2023
@m-richards m-richards changed the title Add GeometryArray._from_sequence_of_strings ENH: Add GeometryArray._from_sequence_of_strings Dec 30, 2023
@bnaul
Copy link
Contributor Author

bnaul commented Jan 3, 2024

@martinfleis done!

Copy link
Member

@martinfleis martinfleis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bnaul!

@martinfleis martinfleis merged commit 54744af into geopandas:main Jan 3, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Add _from_sequence_of_strings for GeometryArray
4 participants