No project description provided
Project description
XlDemerge
XlDemerge is a Python library designed to facilitate working with Excel files by offering utilities to unmerge cells and manipulate data using openpyxl, pandas, and numpy. It provides a set of functions that allow users to unmerge cells in Excel sheets, either entirely, by rows, or by columns, and then process the data into a pandas DataFrame for further analysis or manipulation.
Installation
To install XlDemerge, simply use pip:
pip install XlDemerge
Dependencies
XlDemerge requires the following Python libraries:
- openpyxl==3.1.2
- pandas==1.5.3
- numpy==1.23.5
Ensure these are installed in your environment to use XlDemerge effectively.
Usage
Here are some examples of how to use XlDemerge:
Unmerging All Cells in a Sheet
from XlDemerge import cell_unmerge
# Path to your Excel file and the sheet name
file_path = "path/to/your/excel.xlsx"
sheet_name = "Sheet1"
# Unmerge all cells and get data as a pandas DataFrame
df = cell_unmerge(file_path, sheet_name)
print(df)
Unmerging Rows Only
from XlDemerge import rows_unmerge
df = rows_unmerge(file_path, sheet_name)
print(df)
Unmerging Columns Only
from XlDemerge import columns_unmerge
df = columns_unmerge(file_path, sheet_name)
print(df)
Getting a List of Merged Cell Ranges
from XlDemerge import merged_cell_range
merged_ranges = merged_cell_range(file_path, sheet_name)
print(merged_ranges)
Features
- Unmerge cells in an Excel sheet and fill with the original top-left value.
- Support for unmerging by rows, columns, or all merged cells.
- Conversion of Excel data to pandas DataFrame post-unmerge.
- Identification of merged cell ranges in a sheet.
Acknowledgments
- Thanks to the creators and contributors of openpyxl, pandas, and numpy for their amazing libraries that made this project possible.
Contact Information
For help or inquiries about XlDemerge, reach out to (pyclique.1206@gmail.com).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file XlDemerge-0.1.0.tar.gz.
File metadata
- Download URL: XlDemerge-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a83edfd156f7f9a8b83add1dfc8f4a7b7e9b5f75ef7adc97fb038db572d3e3
|
|
| MD5 |
b7f29f1fb05ef01c3501c8d5736e1b95
|
|
| BLAKE2b-256 |
995c6547f1ad83acc172237c6579aa019ee741e41dea1f27b7c41e2c4b11017e
|
File details
Details for the file XlDemerge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: XlDemerge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
164df7d087303fd29139a525ba48d3b63fd013a17291bcf63e83225cc94f40ea
|
|
| MD5 |
32ca66fd092a9a7a3b7f5615f2acbf65
|
|
| BLAKE2b-256 |
75a581a40f4ab875fb157b0684c057fa7e5c155d41f47eee4362bbc2b9474368
|