You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought it could be a nice thing to have a read_csv class method in a pandas_dataclass. For example, suppose I have a CSV like the one below and I'd like to load it into a Weather dataclass defined at the beginning of the README. I could just call a Weather.read_csv(path) and it would cast values, name columns and indexes automatically.
Really like the idea of your package and will experiment - also agree with the proposed feature although probably worth supporting all read/write methods - not sure if there is an easy way to “wrap” the underlying Pandas methods? Also wondering about version 2.x of Pandas support?
I thought it could be a nice thing to have a
read_csv
class method in a pandas_dataclass. For example, suppose I have a CSV like the one below and I'd like to load it into aWeather
dataclass defined at the beginning of the README. I could just call aWeather.read_csv(path)
and it would cast values, name columns and indexes automatically.The text was updated successfully, but these errors were encountered: