blaylockbk / SynopticPy

Retrieve mesonet weather data as Polars DataFrames from Synoptic's Weather API.
https://synopticpy.readthedocs.io/
MIT License
50 stars 6 forks source link

Error converting LATITUDE from string to float #62

Open blaylockbk opened 3 days ago

blaylockbk commented 3 days ago
import synoptic

df = synoptic.Latest(vars="air_temp").df()

InvalidOperationError: conversion from str to f64 failed in column 'LATITUDE' for 1 out of 1 values: [" 34.634361"]

Seems like I just need to add a .strip_chars or something to these float columns.