# PyAutoPlot Package Documentation

## Changelog

* **1.1.0 (Latest)**:&#x20;
  1. **New Visualizations**: Added Correlation Heatmaps and Violin Plots.
  2. **Data Cleanup**: New `cleanup()` method allows filling or dropping missing values with multiple strategies.
  3. **Advanced Reporting**:
     * `export_json()`: Saves all stats and metadata to JSON.
     * `export_report()`: Generates professional HTML (self-contained) or PDF reports.
  4. **Improved Intelligence**: Automatically detects and parses date strings into datetime objects.
  5. **Optimizations**: Better memory management and resource warnings for large datasets.
* **1.0.2 (Latest)**: Performance and other improvements, along with better error handling.
* **1.0.1**: Added package dependencies to PyAutoPlot.
* **1.0.0**: Initial release.

## Installation

You can install PyAutoPlot using PyPi. Please make sure that you are using Python 3.6 or later before installing PyAutoPlot:

```bash
pip install pyautoplot
```

{% hint style="warning" %}
**PyAutoPlot** might not work well with certain datasets. Please let us know if you encounter any issues or have an edge use case.
{% endhint %}

***

## Example Usage

### AutoPlot

```python
from pyautoplot import AutoPlot

# Initialize with a CSV file
plotter = AutoPlot("path/to/dataset.csv")

# Automatically analyze and plot
plotter.auto_plot(output_file='test', theme="dark", color='orange', excludes=['detailed_analysis'])
```

### Customization

```python
from pyautoplot import AutoPlot

# Define your custom theme
custom_theme = {
    "axes.facecolor": "#ffffff",
    "axes.edgecolor": "#000000",
    "axes.labelcolor": "#000000",
    "figure.facecolor": "#ffffff",
    "grid.color": "#dddddd",
    "text.color": "#000000",
    "xtick.color": "#000000",
    "ytick.color": "#000000",
    "legend.frameon": True,
}

# Initialize with a CSV file
plotter = AutoPlot("path/to/dataset.csv")

# Automatically analyze and plot using the custom theme
plotter.auto_plot(output_file='test', theme=custom_theme, color='orange', excludes=['detailed_analysis'])
```


---

# 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/pyautoplot-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.
