JakobGM / patito

A data modelling layer built on top of polars and pydantic
MIT License
252 stars 23 forks source link

Add tests for AliasGenerator #61

Closed thomasaarholt closed 4 months ago

thomasaarholt commented 4 months ago

I accidentally added the support for AliasGenerator within PR #58 after reading @llmx issue in #55. I'm now adding a few tests.

This supports transforming column names of a df to match those of a patito model using either a function with signature [str] -> str or an AliasGenerator.