> For the complete documentation index, see [llms.txt](https://infinitode-docs.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitode-docs.gitbook.io/documentation/package-documentation/duplipy-package-documentation.md).

# DupliPy Package Documentation

## Changelog

* **0.2.6 (Latest)**:&#x20;
  * Added new CSV augmentation functions: `augment_csv_data` for automatic imputation, balancing, and expansion of tabular datasets.
  * Added new numerical data augmentation functions: `add_noise`, `scale_data`, and `shift_data`.
  * Added new time-series augmentation function: `augment_time_series` with automatic date pattern identification.
  * Added standalone dataset balancing function: `balance_dataset`.
  * Improved type hints throughout the library to support Python 3.10+ features.
  * Enhanced docstrings and documentation for better code clarity and linting.
* **0.2.5 (Latest)**: Added new text augmentation functions: swap\_random\_words and random\_word\_deletion. Added new text similarity metrics: sorensen\_dice\_coefficient and cosine\_similarity\_score. Added new image similarity metrics: mean\_squared\_error and psnr. Added new text analysis function: named\_entity\_recognition.
* **0.2.4**: Updated DupliPy with 3 new image augmentation functions and 1 new formatting function for post-formatting.
* **0.2.3**: Updated PYPI project description.
* **0.2.2**: Fixed double period bug when joining sentences after replace.
* **0.2.1**: Created new functions, including removing profanity and removing hate speech using AI.
* **0.2.0**: Updated docstrings, and added new functions for `similarity` and `replication`.
* **0.1.8 - 0.1.9**: Fixed import errors.
* **0.1.2 - 0.1.7**: Fixed major errors, and added support for image augmentation.
* **0.1.1**: Created base package functions and modules.
* **0.1.0**: Initial release.

## Installation

You can install DupliPy using PyPi, please make sure that you are using Python 3.6 or later before installing DupliPy:

```bash
pip install duplipy
```

***

## Example Usage

### Text formatting

```python
from duplipy.formatting import remove_special_characters, standardize_text

text = "Hello! This is some text."

# Remove special characters
formatted_text = remove_special_characters(text)
print(formatted_text)  # Output: Hello This is some text

# Standardize text formatting
standardized_text = standardize_text(text)
print(standardized_text)  # Output: hello! this is some text
```
