Correlation Explorer is a Python application for exploring relationships between numeric columns in CSV and Excel datasets. It calculates correlation matrices, shows p-values where supported, renders an interactive heatmap, and exports the results in several formats.
- Load
.csv,.xls, and.xlsxfiles. - Automatically select numeric columns for analysis.
- Choose which columns should be included in the correlation matrix.
- Handle missing values with
drop,mean,median,zero, or a custom value. - Calculate Pearson, Spearman, Kendall, distance, and partial correlations.
- Display correlation and p-value matrices.
- Render a Plotly heatmap.
- Export results to Excel, HTML, PNG, and PDF.
- Python
- Streamlit
- Tkinter
- pandas
- NumPy
- SciPy
- Pingouin
- Plotly
- Kaleido
- XlsxWriter
Create and activate a virtual environment:
python -m venv .venv
.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRun the Streamlit version:
streamlit run app.pyOr run through the bundled launcher:
python run.pyThen open the local Streamlit URL in a browser, upload a dataset, choose the columns and correlation method, and build the matrix.
The repository also contains a Tkinter-based desktop interface:
python tk-corr.pyThis version provides a local desktop window for loading files, building the matrix, viewing the heatmap, and saving exported files.
The project includes a PyInstaller spec file for creating a Windows executable:
pyinstaller "Correlation Explorer.spec"The built application is generated in the dist directory.
.
|-- app.py
|-- run.py
|-- tk-corr.py
|-- utils.py
|-- requirements.txt
|-- Correlation Explorer.spec
`-- matrix-svgrepo-com.ico
- PNG and PDF export require
kaleido. - Partial and distance correlations use
pingouin. - Only numeric columns are included in the analysis.