capitalone / datacompy

Pandas, Polars, and Spark DataFrame comparison for humans and more!
https://capitalone.github.io/datacompy/
Apache License 2.0
420 stars 124 forks source link

bug fix and clean up of temp_column_name #308

Closed fdosani closed 3 weeks ago

fdosani commented 1 month ago

There seems to have been a hidden bug within temp_column_name. It scans for an existing column name pattern and will increment by 1 if it already exists. In some cases it would skip and increment by more than 1.

This should fix that issue and we can reuse temp_column_name across all the Compare types.

Also some general linting and cleanup.