semvec/pypi-packages huggingface dataset:
wai-test 0.0.4
Python library for unit tests.
License: MIT

Python library for unit tests.
Changelog
=========

0.0.4 (2025-04-14)
------------------

- project name uses underscores now
- removed deprecated `namespace_packages` parameter


0.0.3 (2019-08-19)
-------------------

- Changed the meta-class for all test classes so that it prevents unittest from trying
  to instantiate abstract test-classes. This way standard base-line tests can be written
  as a base-class and all tests in the base class will be run in the sub-class tests, but
  the base-class itself won't try to run (and fail).


0.0.2 (2019-08-19)
-------------------

- RegressionSerialiser.compare now returns a message saying why the comparison failed,
  or None if the comparison passed, for better failure messages.


0.0.1 (2019-08-19)
-------------------

- Initial release
dwlog 0.1.1
Logging functionalities for data wrangling in Python (pandas).
License: MIT
Requires Python: >=3.8

# dwlog
Logging functionalities for data wrangling in Python.

Similar to [tidylog](https://github.com/elbersb/tidylog) but for Python.

Currently it supports pandas only, but PRs for Modin/polars/whatever are welcome!

PRs to add pandas functions are also welcome!

Remember to:

1. `import dwlog.pandas` _after_ `import pandas as pd`
2. Initialize the logger `logging.basicConfig(level=logging.INFO)` 

## Example

```
>python
Python 3.13.2 (tags/v3.13.2:4f8bb39, Feb  4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> import numpy as np
>>> import logging
>>> import dwlog.pandas
>>> logging.basicConfig(level=logging.INFO)
>>> df = pd.DataFrame({"a":[1,1,2,np.nan,3,np.nan],"b":[5,5,6,7,np.nan,np.nan]})
>>> _ = df.drop_duplicates()
INFO:dwlog:Dropped 1/6 (16.67%) duplicated rows, remains 5/6 (83.33%) rows
>>> _ = df.dropna()
INFO:dwlog:Dropped 3/6 (50.0%) rows
>>> _ = df.dropna(subset=['a'])
INFO:dwlog:Dropped 2/6 (33.33%) rows
>>> df.to_excel("test.xlsx", index=False, sheet_name="Sheet1")
>>> df2 = pd.read_excel("test.xlsx", sheet_name="Sheet1")
INFO:dwlog:Read Excel file 'test.xlsx' with shape (5 x 2)
>>> from pathlib import Path
>>> Path("test.xlsx").unlink(missing_ok=True)
```