BeautifulExcel is a python package that makes it easy and quick to save pandas dataframes in beautifully formatted excel files. BeautifulExcel is the Openpyxl for Data Scientists with a deadline.
Project description
BeautifulExcel
⚠️🏗️️ Note: This is only the first version - actively working on additional features!
BeautifulExcel is a python package that makes it easy and quick to save pandas dataframes in beautifully formatted excel files. BeautifulExcel is the Openpyxl for Data Scientists with a deadline.
Getting it
$ pip install beautifulexcel
Update Package: (execute regularly to get the latest features)
$ pip install beautifulexcel --upgrade
How to use:
from beautifulexcel import ExcelWriter
with ExcelWriter('workbook.xlsx', mode='r', theme='elegant_blue') as writer:
ws1 = writer.to_excel(
df,
sheet_name='My Sheet',
startrow=0,
startcol=0,
index=True,
header=True,
col_autofit=True, # automatically change column width to fit content best
col_widths={'A': 20, 'RoE': 40}, # define column width manually
auto_number_formatting=True, # automatically detect number format and change excel format
style={'RoE': 'bg_light_blue', 'D:E': {'fill': 'FFEEB7'}}, # apply custom styling to this dataframe export
use_theme_style=True, # apply the excel workbook "theme" set in ExcelWriter()
)
Further details in the Documentation
A feature is missing? Feel free to contribute!
- Please submit new features as Pull Request to the "dev" branch
- Please make sure the code is nicely formatted and has doc strings by executing
$ pre-commit installbefore your git commit
Project details
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 beautifulexcel-0.3.6.tar.gz.
File metadata
- Download URL: beautifulexcel-0.3.6.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be6008736e90cb27ebf52eff86b72b8bee12f21e016c87217ea311289b618ec7
|
|
| MD5 |
f5cf1e404368fb079e7b39955e4d8fb1
|
|
| BLAKE2b-256 |
6d9776031a37fdc228e61e0cbb21a38b47cc8d1e175fb92974655a040a71c86f
|
File details
Details for the file beautifulexcel-0.3.6-py3-none-any.whl.
File metadata
- Download URL: beautifulexcel-0.3.6-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2abacbc1db9013c2c1a5ae372002bedac3052a6488cc63bd365805d43b06abfc
|
|
| MD5 |
34806ac0f26304bcb29385ac6dacccbe
|
|
| BLAKE2b-256 |
3550cd27a3ca040f4014e6106fedfdf46e093af21458943172ed05acd239edf0
|