cemsbv / pygef

Parse soil measurement data.
https://cemsbv.github.io/pygef
MIT License
31 stars 18 forks source link

Robertson classification and pandas #248

Closed mariosgeo closed 2 years ago

mariosgeo commented 2 years ago

In pandas 1.4.3, when I classify a CPT, i get an error 'DataFrame' object does not support 'Series' assignment by index. Use 'DataFrame.with_columns'

mariosgeo commented 2 years ago

This happens on the utils.py, line 95. I can manually add the df=df.to_pandas() and then the codes goes on. Yet, it crashes later on, on the function new_roberston in the line .pipe(geo.water_pressure, water_level) with error message unhashable type: 'Series'

breinbaas commented 2 years ago

This looks like a bug due to a change in the underlying polars package

ritchie46 commented 2 years ago

No it is is a bug in pygef where code did not adhere to latest changes in polars. I recommend using an earlier version of pygef if you need that functionality.

We are working toward a new version that does not include robertson classifcation.

mariosgeo commented 2 years ago

Thanks. I rolled to previous version of polars and it is working/ So no pandas issue I assume.