Closed joshuarrrrr closed 5 months ago
Dear @joshuarrrrr ,
thanks for reporting this issue! You're absolutely right! I mistakenly used read_csv
here in combination with column specs not thinking of actual commata in the data... With the latest commit I changed that and the names should now be correct.
Thanks for the swift fix! I can confirm it's now working perfectly as expected in v0.79.0.
Describe the bug When fetching the stations metadata for DWD observations, some stations are missing the state value and part of the name. This seems to affect stations with a comma in their name due to a prefix being moved to the end of the name, for example "Harzburg, Bad". This causes the station name to be cut off at the comma, so it would become "Harzburg", and the state name to be missing completely.
To Reproduce Using version
0.78.0
with the following code:It results in 30 stations with a cut off name and null state value.
Expected behavior The full station name and state as present in the DWD descriptions txt file.
Desktop (please complete the following information):
Additional context I loaded the stations using pandas for comparison with the following code: