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

define dtype for station info lat-lon #3188

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

kgoebber
Copy link
Collaborator

Description Of Changes

This PR seeks to fix issue #2872 by explicitly declaring the type of the latitude and longitude columns of the Pandas DataFrame that gets returned when using the add_station_lat_lon function.

Checklist

@kgoebber kgoebber requested a review from a team as a code owner September 12, 2023 22:20
@kgoebber kgoebber requested review from dopplershift and removed request for a team September 12, 2023 22:20
Copy link
Member

@dcamron dcamron left a comment

Choose a reason for hiding this comment

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

Thanks for throwing this together! I might run it by one of this past year's summer interns if they have time, since they had started to take a look at this before. Also offered a solution that doesn't add any new lines, but I haven't tested it across Pandas versions.

I'll come back and approve/request after running it by them!

src/metpy/io/station_data.py Outdated Show resolved Hide resolved
@dopplershift dopplershift merged commit b2b30dd into Unidata:main Sep 14, 2023
28 checks passed
@github-actions github-actions bot added this to the September 2023 milestone Sep 14, 2023
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.

add_station_lat_lon yields columns with object dtype
3 participants