Closed johalnes closed 11 months ago
I'm using Ruff for linting and formatting, which complains about some best practices not being followed. Mostly unused imports, isort complains about sorting of imports, but also that type(value) is str
should be changed with is instance(value, str)
according to some PEP.
Should I create a new issue and pull request with ruff as formatter and use auto fix to remove those smaller "issues"?
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
ac3fa37
) 81.70% compared to head (63cea7f
) 81.73%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for these updates @johalnes !
I'm using Ruff for linting and formatting, which complains about some best practices not being followed. Mostly unused imports, isort complains about sorting of imports, but also that
type(value) is str
should be changed with isinstance(value, str)
according to some PEP.Should I create a new issue and pull request with ruff as formatter and use auto fix to remove those smaller "issues"?
Sure!
Overview
As discussed in #474, added Python dataframe interchange protocol.
This open up the possibility for using the chain ladder package with multiple different dataframe packages, like Spark, Polars, Vaex etc.
Behind the scene it uses the "new" pandas function
pd.api.interchange.from_dataframe(data)
that magically converts a dataframe to the correct types and other dataframe adjustments to make it pandas compatible.Testing
Tested with the example from issue #474 and added test to ensure same result with polars and pandas