Skip to main content

Excel Write

DeepSource DeepSource

Optimised way to write in excel files.

Developed by Dipan Nanda (c) 2023

Example of Usage

write_in_excel

from excel_write import write_in_excel

write_in_excel(df, location, sheet)
"""
:param DataFrame df: The DataFrame used to export to Excel
:param str sheet: The name that is to be assigned to the file
:param str location: Location where the file is to be created
:param bool index: including index or not
"""

auto_adjust_excel_width

from excel_write import auto_adjust_excel_width

auto_adjust_column_width_index(df, writer, sheet_name="MySheet", margin=3)

"""
:param DataFrame df: The DataFrame used to export the Excel
:param pd.ExcelWriter writer: The pandas exporter with engine="xlsxwriter"
:param str sheet_name: The name of the sheet
:param int margin: How many extra space (beyond the maximum size of the string)
:param int length_factor: The factor to apply to the character length to obtain the 
column width
:param int decimals: The number of decimal places to assume for floats: Should be the
same as the number of decimals displayed in the Excel
:param bool index: Whether the DataFrame's index is inserted as a separate column (if
index=False in df.to_xlsx() set index=False here!)
"""

Changelog

Go here to checkout the complete changelog.

License

This is under MIT License

License: MIT

Release files for excel-write 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for excel-write 1.1.0
File Size Uploaded
excel-write-1.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for excel-write 1.1.0
File Interpreter ABI Platform
excel_write-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / excel-write-1.1.0.tar.gz

Download URL excel-write-1.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cc5fb6c768494103a794e6559ae278a2196a71c3a96b20635fbb9f4c9ad1977f
BLAKE2b-256 checksum
How to use checksums
ff3b0bc11cefd88833c05161b12da513ad495d7d70233e2d74b277af1037aa70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / excel_write-1.1.0-py3-none-any.whl

Download URL excel_write-1.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52f765fa846b1fc7e983eb2a30e8a0c63fc6d615d5eb17db8db5b98d53472d20
BLAKE2b-256 checksum
How to use checksums
d88a4594c18fe42a6474bdd2d6ca5340c8dcaa9f35b6438fff1bd89a914bd940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page