# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinitode-docs.gitbook.io/documentation/package-documentation/duplipy-package-documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
