The Interactive Column Mapping Tool is a Streamlit application designed to allow users to upload Excel or CSV files, map their columns interactively to desired column names, and then download the processed data as a zipped Excel file. It aims to simplify and streamline the process of data wrangling for datasets with varying column names.
You can access and use the live app here.
- Ensure you have Python installed. This project requires Python 3.7+.
- Clone this repository:
git clone https://github.com/bernard-rr/interactive_column_mapping - Navigate to the project directory and set up a virtual environment:
cd path-to-directory python -m venv venv source venv/bin/activate # On Windows, use: .\venv\Scripts\activate - Install the required packages:
pip install -r requirements.txt - Run the Streamlit app:
streamlit run main.py
- Click on the "Browse files" button under "Choose an Excel or CSV file".
- Navigate to the location of your Excel or CSV file and select it.
- Once selected, the file will be uploaded automatically.
- List your desired columns in the text area provided.
- Use commas to separate column names.
- Press
CRTL + ENTERto apply.
- Use the drop-down selectors to map your desired columns to the columns from the uploaded Excel or CSV file.
- If a desired column shouldn't map to any uploaded column, select "[Do not map]".
- Click "Submit All Mappings".
- After processing, a preview of your data will appear.
- To download the processed data, click "Download zipped CSV file".
- File not uploading: Ensure the file is in
.xlsxor.csvformat. Other formats are not supported. - Mappings not saving: Refresh the page and try again. Ensure all mappings are selected before submitting.
Contributions are welcome! Please fork this repository and create a pull request with your changes.